source: trunk/libs/newlib/src/newlib/libc/posix/wordexp2.h @ 543

Last change on this file since 543 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 530 bytes
Line 
1/* Copyright (C) 2012 by  Peter Rosin. All rights reserved.
2 *
3 * Permission to use, copy, modify, and distribute this software
4 * is freely granted, provided that this notice is preserved.
5 */
6#ifndef _WORDEXP2_H_
7
8struct ewords_entry {
9  SLIST_ENTRY(ewords_entry) next;
10  char ewords[1];
11};
12
13typedef struct {
14  SLIST_HEAD(ewords_head, ewords_entry) list;
15  char *we_wordv[1];
16} ext_wordv_t;
17
18#define WE_WORDV_TO_EXT_WORDV(wordv) \
19  (ext_wordv_t *)((void *)(wordv) - offsetof(ext_wordv_t, we_wordv))
20
21#endif /* !_WORDEXP2_H_ */
Note: See TracBrowser for help on using the repository browser.