Blame var_spec.h

Packit 991819
/*-
Packit 991819
 * Copyright (c) 2009, 2011, 2012, 2016, 2018
Packit 991819
 *	mirabilos <m@mirbsd.org>
Packit 991819
 *
Packit 991819
 * Provided that these terms and disclaimer and all copyright notices
Packit 991819
 * are retained or reproduced in an accompanying document, permission
Packit 991819
 * is granted to deal in this work without restriction, including un-
Packit 991819
 * limited rights to use, publicly perform, distribute, sell, modify,
Packit 991819
 * merge, give away, or sublicence.
Packit 991819
 *
Packit 991819
 * This work is provided "AS IS" and WITHOUT WARRANTY of any kind, to
Packit 991819
 * the utmost extent permitted by applicable law, neither express nor
Packit 991819
 * implied; without malicious intent or gross negligence. In no event
Packit 991819
 * may a licensor, author or contributor be held liable for indirect,
Packit 991819
 * direct, other damage, loss, or other issues arising in any way out
Packit 991819
 * of dealing in the work, even if advised of the possibility of such
Packit 991819
 * damage or existence of a defect, except proven that it results out
Packit 991819
 * of said person's immediate fault when using the work as intended.
Packit 991819
 */
Packit 991819
Packit 991819
#if defined(VARSPEC_DEFNS)
Packit 991819
__RCSID("$MirOS: src/bin/mksh/var_spec.h,v 1.11 2018/01/13 21:38:10 tg Exp $");
Packit 991819
#define FN(name)			/* nothing */
Packit 991819
#elif defined(VARSPEC_ENUMS)
Packit 991819
#define FN(name)			V_##name,
Packit 991819
#define F0(name)			V_##name = 0,
Packit 991819
#elif defined(VARSPEC_ITEMS)
Packit 991819
#define F0(name)			/* nothing */
Packit 991819
#define FN(name)			#name,
Packit 991819
#endif
Packit 991819
Packit 991819
#ifndef F0
Packit 991819
#define F0 FN
Packit 991819
#endif
Packit 991819
Packit 991819
/* NOTE: F0 are skipped for the ITEMS array, only FN generate names */
Packit 991819
Packit 991819
/* 0 is always V_NONE */
Packit 991819
F0(NONE)
Packit 991819
Packit 991819
/* 1 and up are special variables */
Packit 991819
FN(BASHPID)
Packit 991819
#ifdef __OS2__
Packit 991819
FN(BEGINLIBPATH)
Packit 991819
#endif
Packit 991819
FN(COLUMNS)
Packit 991819
#ifdef __OS2__
Packit 991819
FN(ENDLIBPATH)
Packit 991819
#endif
Packit 991819
FN(EPOCHREALTIME)
Packit 991819
#if HAVE_PERSISTENT_HISTORY
Packit 991819
FN(HISTFILE)
Packit 991819
#endif
Packit 991819
FN(HISTSIZE)
Packit 991819
FN(IFS)
Packit 991819
#ifdef MKSH_EARLY_LOCALE_TRACKING
Packit 991819
FN(LANG)
Packit 991819
FN(LC_ALL)
Packit 991819
FN(LC_CTYPE)
Packit 991819
#endif
Packit 991819
#ifdef __OS2__
Packit 991819
FN(LIBPATHSTRICT)
Packit 991819
#endif
Packit 991819
FN(LINENO)
Packit 991819
FN(LINES)
Packit 991819
FN(OPTIND)
Packit 991819
FN(PATH)
Packit 991819
FN(RANDOM)
Packit 991819
FN(SECONDS)
Packit 991819
#ifndef MKSH_NO_CMDLINE_EDITING
Packit 991819
FN(TERM)
Packit 991819
#endif
Packit 991819
FN(TMOUT)
Packit 991819
FN(TMPDIR)
Packit 991819
Packit 991819
#undef FN
Packit 991819
#undef F0
Packit 991819
#undef VARSPEC_DEFNS
Packit 991819
#undef VARSPEC_ENUMS
Packit 991819
#undef VARSPEC_ITEMS