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:;} f()5static 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 } 28