• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #if defined(VARSPEC_DEFNS)
2 __RCSID("$MirOS: src/bin/mksh/var_spec.h,v 1.2 2011/06/05 19:58:21 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(COLUMNS)
23 #if HAVE_PERSISTENT_HISTORY
24 FN(HISTFILE)
25 #endif
26 FN(HISTSIZE)
27 FN(IFS)
28 FN(LINENO)
29 FN(LINES)
30 FN(OPTIND)
31 FN(PATH)
32 FN(RANDOM)
33 FN(SECONDS)
34 FN(TMOUT)
35 FN(TMPDIR)
36 
37 #undef FN
38 #undef F0
39 #undef VARSPEC_DEFNS
40 #undef VARSPEC_ENUMS
41 #undef VARSPEC_ITEMS
42