Blame var_spec.h

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