repo.or.cz
/
libc-test.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fgetwc may clobber errno when the result is not WEOF
[libc-test.git]
/
src
/
api
/
wordexp.c
blob
baf7e245d686ebbbe54d514549a13ea69378aba7
1
#include <wordexp.h>
2
#define T(t) (t*)0;
3
#define F(t,n) {t *y = &x.n;}
4
#define C(n) switch(n){case n:;}
5
static void
f
()
6
{
7
T
(
size_t
)
8
{
9
wordexp_t x
;
10
F
(
size_t
,
we_wordc
)
11
F
(
char
**,
we_wordv
)
12
F
(
size_t
,
we_offs
)
13
}
14
C
(
WRDE_APPEND
)
15
C
(
WRDE_DOOFFS
)
16
C
(
WRDE_NOCMD
)
17
C
(
WRDE_REUSE
)
18
C
(
WRDE_SHOWERR
)
19
C
(
WRDE_UNDEF
)
20
C
(
WRDE_BADCHAR
)
21
C
(
WRDE_BADVAL
)
22
C
(
WRDE_CMDSUB
)
23
C
(
WRDE_NOSPACE
)
24
C
(
WRDE_SYNTAX
)
25
{
int
(*
p
)(
const char
*
restrict
,
wordexp_t
*
restrict
,
int
) =
wordexp
;}
26
{
void
(*
p
)(
wordexp_t
*) =
wordfree
;}
27
}