1 #if defined(VARSPEC_DEFNS) 2 __RCSID("$MirOS: src/bin/mksh/var_spec.h,v 1.1 2009/09/26 03:40:03 tg Exp $"); 3 #define FN(name) /* nothing */ 4 #elif defined(VARSPEC_ENUMS) 5 #define FN(name) V_##name, 6 #define F0(name) V_##name = 0, 7 #elif defined(VARSPEC_ITEMS) 8 #define F0(name) /* nothing */ 9 #define FN(name) #name, 10 #endif 11 12 #ifndef F0 13 #define F0 FN 14 #endif 15 16 /* 0 is always V_NONE */ 17 F0(NONE) 18 19 /* 1 and up are special variables */ 20 FN(COLUMNS) 21 #if HAVE_PERSISTENT_HISTORY 22 FN(HISTFILE) 23 #endif 24 FN(HISTSIZE) 25 FN(IFS) 26 FN(LINENO) 27 FN(LINES) 28 FN(OPTIND) 29 FN(PATH) 30 FN(RANDOM) 31 FN(SECONDS) 32 FN(TMOUT) 33 FN(TMPDIR) 34 35 #undef FN 36 #undef F0 37 #undef VARSPEC_DEFNS 38 #undef VARSPEC_ENUMS 39 #undef VARSPEC_ITEMS 40