Home | History | Annotate | Download | only in src
      1 #if defined(VARSPEC_DEFNS)
      2 __RCSID("$MirOS: src/bin/mksh/var_spec.h,v 1.6 2012/11/30 16:45:25 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 /* NOTE: F0 are skipped for the ITEMS array, only FN generate names */
     17 
     18 /* 0 is always V_NONE */
     19 F0(NONE)
     20 
     21 /* 1 and up are special variables */
     22 FN(BASHPID)
     23 FN(COLUMNS)
     24 FN(EPOCHREALTIME)
     25 #if HAVE_PERSISTENT_HISTORY
     26 FN(HISTFILE)
     27 #endif
     28 FN(HISTSIZE)
     29 FN(IFS)
     30 FN(LINENO)
     31 FN(LINES)
     32 FN(OPTIND)
     33 FN(PATH)
     34 FN(RANDOM)
     35 FN(SECONDS)
     36 FN(TMOUT)
     37 FN(TMPDIR)
     38 
     39 #undef FN
     40 #undef F0
     41 #undef VARSPEC_DEFNS
     42 #undef VARSPEC_ENUMS
     43 #undef VARSPEC_ITEMS
     44