xref: /aosp_15_r20/external/mksh/src/sh_flags.gen (revision 7c356e860f31eadd15fd599fcfdb9fd21f16a9d4)
1/* +++ GENERATED FILE +++ DO NOT EDIT +++ */
2/*-
3 * Copyright (c) 2013, 2014, 2015, 2017
4 *	mirabilos <[email protected]>
5 *
6 * Provided that these terms and disclaimer and all copyright notices
7 * are retained or reproduced in an accompanying document, permission
8 * is granted to deal in this work without restriction, including un-
9 * limited rights to use, publicly perform, distribute, sell, modify,
10 * merge, give away, or sublicence.
11 *
12 * This work is provided "AS IS" and WITHOUT WARRANTY of any kind, to
13 * the utmost extent permitted by applicable law, neither express nor
14 * implied; without malicious intent or gross negligence. In no event
15 * may a licensor, author or contributor be held liable for indirect,
16 * direct, other damage, loss, or other issues arising in any way out
17 * of dealing in the work, even if advised of the possibility of such
18 * damage or existence of a defect, except proven that it results out
19 * of said person's immediate fault when using the work as intended.
20 */
21
22#ifndef SHFLAGS_OPTCS
23#if defined(SHFLAGS_DEFNS)
24__RCSID("$MirOS: src/bin/mksh/sh_flags.opt,v 1.9 2020/05/16 22:38:25 tg Exp $");
25#elif defined(SHFLAGS_ENUMS)
26#define FN(sname,cname,flags,ochar)	cname,
27#define F0(sname,cname,flags,ochar)	cname = 0,
28#elif defined(SHFLAGS_ITEMS)
29#define FN(sname,cname,flags,ochar)	((const char *)(&shoptione_ ## cname)) + 2,
30#endif
31#ifndef F0
32#define F0 FN
33#endif
34F0("allexport", FEXPORT, OF_ANY, 'a')
35#if HAVE_NICE
36FN("bgnice", FBGNICE, OF_ANY, 0)
37#endif
38FN("braceexpand", FBRACEEXPAND, OF_ANY, 0)
39#ifndef MKSH_NO_CMDLINE_EDITING
40FN("emacs", FEMACS, OF_ANY, 0)
41#endif
42FN("errexit", FERREXIT, OF_ANY, 'e')
43#ifndef MKSH_NO_CMDLINE_EDITING
44FN("gmacs", FGMACS, OF_ANY, 0)
45#endif
46FN("ignoreeof", FIGNOREEOF, OF_ANY, 0)
47FN("inherit-xtrace", FXTRACEREC, OF_ANY, 0)
48#ifndef SHFLAGS_NOT_CMD
49FN("interactive", FTALKING, OF_CMDLINE, 'i')
50#endif
51FN("keyword", FKEYWORD, OF_ANY, 'k')
52#ifndef SHFLAGS_NOT_CMD
53FN("login", FLOGIN, OF_CMDLINE, 'l')
54#endif
55FN("markdirs", FMARKDIRS, OF_ANY, 'X')
56#ifndef MKSH_UNEMPLOYED
57FN("monitor", FMONITOR, OF_ANY, 'm')
58#endif
59FN("noclobber", FNOCLOBBER, OF_ANY, 'C')
60FN("noexec", FNOEXEC, OF_ANY, 'n')
61FN("noglob", FNOGLOB, OF_ANY, 'f')
62FN("nohup", FNOHUP, OF_ANY, 0)
63FN("nolog", FNOLOG, OF_ANY, 0)
64#ifndef MKSH_UNEMPLOYED
65FN("notify", FNOTIFY, OF_ANY, 'b')
66#endif
67FN("nounset", FNOUNSET, OF_ANY, 'u')
68FN("physical", FPHYSICAL, OF_ANY, 0)
69FN("pipefail", FPIPEFAIL, OF_ANY, 0)
70FN("posix", FPOSIX, OF_ANY, 0)
71FN("privileged", FPRIVILEGED, OF_ANY, 'p')
72#ifndef SHFLAGS_NOT_CMD
73FN("restricted", FRESTRICTED, OF_CMDLINE, 'r')
74#endif
75FN("sh", FSH, OF_ANY, 0)
76#ifndef SHFLAGS_NOT_CMD
77FN("stdin", FSTDIN, OF_CMDLINE, 's')
78#endif
79FN("trackall", FTRACKALL, OF_ANY, 'h')
80FN("utf8-mode", FUNNYCODE, OF_ANY, 'U')
81FN("verbose", FVERBOSE, OF_ANY, 'v')
82#ifndef MKSH_NO_CMDLINE_EDITING
83FN("vi", FVI, OF_ANY, 0)
84#endif
85#ifndef MKSH_NO_CMDLINE_EDITING
86FN("vi-esccomplete", FVIESCCOMPLETE, OF_ANY, 0)
87#endif
88#ifndef MKSH_NO_CMDLINE_EDITING
89FN("vi-tabcomplete", FVITABCOMPLETE, OF_ANY, 0)
90#endif
91#ifndef MKSH_NO_CMDLINE_EDITING
92FN("viraw", FVIRAW, OF_ANY, 0)
93#endif
94FN("xtrace", FXTRACE, OF_ANY, 'x')
95#ifndef SHFLAGS_NOT_CMD
96FN("", FCOMMAND, OF_CMDLINE, 'c')
97#endif
98FN("", FTALKING_I, OF_INTERNAL, 0)
99#undef F0
100#undef FN
101#undef SHFLAGS_DEFNS
102#undef SHFLAGS_ENUMS
103#undef SHFLAGS_ITEMS
104#else
105#ifndef SHFLAGS_NOT_SET
106"A:"
107#endif
108"a"
109#ifndef MKSH_UNEMPLOYED
110"b"
111#endif
112"C"
113#ifndef SHFLAGS_NOT_CMD
114"c"
115#endif
116"e"
117"f"
118"h"
119#ifndef SHFLAGS_NOT_CMD
120"i"
121#endif
122"k"
123#ifndef SHFLAGS_NOT_CMD
124"l"
125#endif
126#ifndef MKSH_UNEMPLOYED
127"m"
128#endif
129"n"
130#ifndef SHFLAGS_NOT_CMD
131"o:"
132#endif
133#ifndef SHFLAGS_NOT_SET
134"o;"
135#endif
136"p"
137#ifndef SHFLAGS_NOT_CMD
138"r"
139#endif
140#ifndef SHFLAGS_NOT_CMD
141"s"
142#endif
143#ifndef SHFLAGS_NOT_SET
144"s"
145#endif
146#ifndef SHFLAGS_NOT_CMD
147"T:"
148#endif
149"U"
150"u"
151"v"
152"X"
153"x"
154#undef SHFLAGS_OPTCS
155#endif
156