1c84f3f3cSopenharmony_ci/*-
2c84f3f3cSopenharmony_ci * Copyright (c) 2009, 2011, 2012, 2016, 2018
3c84f3f3cSopenharmony_ci *	mirabilos <m@mirbsd.org>
4c84f3f3cSopenharmony_ci *
5c84f3f3cSopenharmony_ci * Provided that these terms and disclaimer and all copyright notices
6c84f3f3cSopenharmony_ci * are retained or reproduced in an accompanying document, permission
7c84f3f3cSopenharmony_ci * is granted to deal in this work without restriction, including un-
8c84f3f3cSopenharmony_ci * limited rights to use, publicly perform, distribute, sell, modify,
9c84f3f3cSopenharmony_ci * merge, give away, or sublicence.
10c84f3f3cSopenharmony_ci *
11c84f3f3cSopenharmony_ci * This work is provided "AS IS" and WITHOUT WARRANTY of any kind, to
12c84f3f3cSopenharmony_ci * the utmost extent permitted by applicable law, neither express nor
13c84f3f3cSopenharmony_ci * implied; without malicious intent or gross negligence. In no event
14c84f3f3cSopenharmony_ci * may a licensor, author or contributor be held liable for indirect,
15c84f3f3cSopenharmony_ci * direct, other damage, loss, or other issues arising in any way out
16c84f3f3cSopenharmony_ci * of dealing in the work, even if advised of the possibility of such
17c84f3f3cSopenharmony_ci * damage or existence of a defect, except proven that it results out
18c84f3f3cSopenharmony_ci * of said person's immediate fault when using the work as intended.
19c84f3f3cSopenharmony_ci */
20c84f3f3cSopenharmony_ci
21c84f3f3cSopenharmony_ci#if defined(VARSPEC_DEFNS)
22c84f3f3cSopenharmony_ci__RCSID("$MirOS: src/bin/mksh/var_spec.h,v 1.11 2018/01/13 21:38:10 tg Exp $");
23c84f3f3cSopenharmony_ci#define FN(name)			/* nothing */
24c84f3f3cSopenharmony_ci#elif defined(VARSPEC_ENUMS)
25c84f3f3cSopenharmony_ci#define FN(name)			V_##name,
26c84f3f3cSopenharmony_ci#define F0(name)			V_##name = 0,
27c84f3f3cSopenharmony_ci#elif defined(VARSPEC_ITEMS)
28c84f3f3cSopenharmony_ci#define F0(name)			/* nothing */
29c84f3f3cSopenharmony_ci#define FN(name)			#name,
30c84f3f3cSopenharmony_ci#endif
31c84f3f3cSopenharmony_ci
32c84f3f3cSopenharmony_ci#ifndef F0
33c84f3f3cSopenharmony_ci#define F0 FN
34c84f3f3cSopenharmony_ci#endif
35c84f3f3cSopenharmony_ci
36c84f3f3cSopenharmony_ci/* NOTE: F0 are skipped for the ITEMS array, only FN generate names */
37c84f3f3cSopenharmony_ci
38c84f3f3cSopenharmony_ci/* 0 is always V_NONE */
39c84f3f3cSopenharmony_ciF0(NONE)
40c84f3f3cSopenharmony_ci
41c84f3f3cSopenharmony_ci/* 1 and up are special variables */
42c84f3f3cSopenharmony_ciFN(BASHPID)
43c84f3f3cSopenharmony_ci#ifdef __OS2__
44c84f3f3cSopenharmony_ciFN(BEGINLIBPATH)
45c84f3f3cSopenharmony_ci#endif
46c84f3f3cSopenharmony_ciFN(COLUMNS)
47c84f3f3cSopenharmony_ci#ifdef __OS2__
48c84f3f3cSopenharmony_ciFN(ENDLIBPATH)
49c84f3f3cSopenharmony_ci#endif
50c84f3f3cSopenharmony_ciFN(EPOCHREALTIME)
51c84f3f3cSopenharmony_ci#if HAVE_PERSISTENT_HISTORY
52c84f3f3cSopenharmony_ciFN(HISTFILE)
53c84f3f3cSopenharmony_ci#endif
54c84f3f3cSopenharmony_ciFN(HISTSIZE)
55c84f3f3cSopenharmony_ciFN(IFS)
56c84f3f3cSopenharmony_ci#ifdef MKSH_EARLY_LOCALE_TRACKING
57c84f3f3cSopenharmony_ciFN(LANG)
58c84f3f3cSopenharmony_ciFN(LC_ALL)
59c84f3f3cSopenharmony_ciFN(LC_CTYPE)
60c84f3f3cSopenharmony_ci#endif
61c84f3f3cSopenharmony_ci#ifdef __OS2__
62c84f3f3cSopenharmony_ciFN(LIBPATHSTRICT)
63c84f3f3cSopenharmony_ci#endif
64c84f3f3cSopenharmony_ciFN(LINENO)
65c84f3f3cSopenharmony_ciFN(LINES)
66c84f3f3cSopenharmony_ciFN(OPTIND)
67c84f3f3cSopenharmony_ciFN(PATH)
68c84f3f3cSopenharmony_ciFN(RANDOM)
69c84f3f3cSopenharmony_ciFN(SECONDS)
70c84f3f3cSopenharmony_ci#ifndef MKSH_NO_CMDLINE_EDITING
71c84f3f3cSopenharmony_ciFN(TERM)
72c84f3f3cSopenharmony_ci#endif
73c84f3f3cSopenharmony_ciFN(TMOUT)
74c84f3f3cSopenharmony_ciFN(TMPDIR)
75c84f3f3cSopenharmony_ci
76c84f3f3cSopenharmony_ci#undef FN
77c84f3f3cSopenharmony_ci#undef F0
78c84f3f3cSopenharmony_ci#undef VARSPEC_DEFNS
79c84f3f3cSopenharmony_ci#undef VARSPEC_ENUMS
80c84f3f3cSopenharmony_ci#undef VARSPEC_ITEMS
81