1 | #ifndef OPTION_ASDL_H
|
2 | #define OPTION_ASDL_H
|
3 |
|
4 | namespace option_asdl {
|
5 |
|
6 | #define ASDL_NAMES struct
|
7 | ASDL_NAMES option_i {
|
8 | enum no_name {
|
9 | errexit = 1,
|
10 | nounset = 2,
|
11 | pipefail = 3,
|
12 | inherit_errexit = 4,
|
13 | nullglob = 5,
|
14 | verbose_errexit = 6,
|
15 | verbose_warn = 7,
|
16 | noexec = 8,
|
17 | xtrace = 9,
|
18 | verbose = 10,
|
19 | noglob = 11,
|
20 | noclobber = 12,
|
21 | errtrace = 13,
|
22 | posix = 14,
|
23 | vi = 15,
|
24 | emacs = 16,
|
25 | interactive = 17,
|
26 | hashall = 18,
|
27 | lastpipe = 19,
|
28 | failglob = 20,
|
29 | extglob = 21,
|
30 | nocasematch = 22,
|
31 | dotglob = 23,
|
32 | extdebug = 24,
|
33 | eval_unsafe_arith = 25,
|
34 | ignore_flags_not_impl = 26,
|
35 | ignore_shopt_not_impl = 27,
|
36 | rewrite_extern = 28,
|
37 | _allow_command_sub = 29,
|
38 | _allow_process_sub = 30,
|
39 | dynamic_scope = 31,
|
40 | redefine_const = 32,
|
41 | redefine_source = 33,
|
42 | _running_trap = 34,
|
43 | _running_hay = 35,
|
44 | _no_debug_trap = 36,
|
45 | _no_err_trap = 37,
|
46 | strict_parse_equals = 38,
|
47 | strict_parse_slice = 39,
|
48 | strict_argv = 40,
|
49 | strict_arith = 41,
|
50 | strict_array = 42,
|
51 | strict_control_flow = 43,
|
52 | strict_env_binding = 44,
|
53 | strict_errexit = 45,
|
54 | strict_nameref = 46,
|
55 | strict_word_eval = 47,
|
56 | strict_tilde = 48,
|
57 | strict_glob = 49,
|
58 | parse_at = 50,
|
59 | parse_proc = 51,
|
60 | parse_func = 52,
|
61 | parse_brace = 53,
|
62 | parse_bracket = 54,
|
63 | parse_equals = 55,
|
64 | parse_paren = 56,
|
65 | parse_ysh_string = 57,
|
66 | parse_triple_quote = 58,
|
67 | simple_word_eval = 59,
|
68 | dashglob = 60,
|
69 | command_sub_errexit = 61,
|
70 | process_sub_fail = 62,
|
71 | xtrace_rich = 63,
|
72 | xtrace_details = 64,
|
73 | sigpipe_status_ok = 65,
|
74 | env_obj = 66,
|
75 | init_ysh_globals = 67,
|
76 | for_loop_frames = 68,
|
77 | parse_at_all = 69,
|
78 | parse_backslash = 70,
|
79 | parse_backticks = 71,
|
80 | parse_dollar = 72,
|
81 | parse_ignored = 73,
|
82 | parse_sh_arith = 74,
|
83 | parse_dparen = 75,
|
84 | parse_dbracket = 76,
|
85 | parse_bare_word = 77,
|
86 | parse_word_join = 78,
|
87 | no_exported = 79,
|
88 | no_init_globals = 80,
|
89 | simple_echo = 81,
|
90 | simple_eval_builtin = 82,
|
91 | simple_test_builtin = 83,
|
92 | expand_aliases = 84,
|
93 | progcomp = 85,
|
94 | hostcomplete = 86,
|
95 | histappend = 87,
|
96 | cmdhist = 88,
|
97 | assoc_expand_once = 89,
|
98 | autocd = 90,
|
99 | cdable_vars = 91,
|
100 | cdspell = 92,
|
101 | checkhash = 93,
|
102 | checkjobs = 94,
|
103 | checkwinsize = 95,
|
104 | complete_fullquote = 96,
|
105 | direxpand = 97,
|
106 | dirspell = 98,
|
107 | execfail = 99,
|
108 | extquote = 100,
|
109 | force_fignore = 101,
|
110 | globasciiranges = 102,
|
111 | globstar = 103,
|
112 | gnu_errfmt = 104,
|
113 | histreedit = 105,
|
114 | histverify = 106,
|
115 | huponexit = 107,
|
116 | interactive_comments = 108,
|
117 | lithist = 109,
|
118 | localvar_inherit = 110,
|
119 | localvar_unset = 111,
|
120 | login_shell = 112,
|
121 | mailwarn = 113,
|
122 | no_empty_cmd_completion = 114,
|
123 | nocaseglob = 115,
|
124 | progcomp_alias = 116,
|
125 | promptvars = 117,
|
126 | restricted_shell = 118,
|
127 | shift_verbose = 119,
|
128 | sourcepath = 120,
|
129 | xpg_echo = 121,
|
130 | ARRAY_SIZE = 122,
|
131 | };
|
132 | };
|
133 |
|
134 | typedef int option_t;
|
135 |
|
136 | ASDL_NAMES builtin_i {
|
137 | enum no_name {
|
138 | colon = 1,
|
139 | dot = 2,
|
140 | exec_ = 3,
|
141 | eval = 4,
|
142 | set = 5,
|
143 | shift = 6,
|
144 | times = 7,
|
145 | trap = 8,
|
146 | unset = 9,
|
147 | readonly = 10,
|
148 | local = 11,
|
149 | declare = 12,
|
150 | typeset = 13,
|
151 | export_ = 14,
|
152 | true_ = 15,
|
153 | false_ = 16,
|
154 | try_ = 17,
|
155 | assert_ = 18,
|
156 | break_ = 19,
|
157 | continue_ = 20,
|
158 | return_ = 21,
|
159 | exit = 22,
|
160 | read = 23,
|
161 | echo = 24,
|
162 | printf = 25,
|
163 | mapfile = 26,
|
164 | readarray = 27,
|
165 | cd = 28,
|
166 | pushd = 29,
|
167 | popd = 30,
|
168 | dirs = 31,
|
169 | pwd = 32,
|
170 | source = 33,
|
171 | umask = 34,
|
172 | ulimit = 35,
|
173 | wait = 36,
|
174 | jobs = 37,
|
175 | fg = 38,
|
176 | bg = 39,
|
177 | shopt = 40,
|
178 | complete = 41,
|
179 | compgen = 42,
|
180 | compopt = 43,
|
181 | compadjust = 44,
|
182 | compexport = 45,
|
183 | getopts = 46,
|
184 | builtin = 47,
|
185 | command = 48,
|
186 | type = 49,
|
187 | hash = 50,
|
188 | help = 51,
|
189 | history = 52,
|
190 | alias = 53,
|
191 | unalias = 54,
|
192 | bind = 55,
|
193 | append = 56,
|
194 | write = 57,
|
195 | json = 58,
|
196 | json8 = 59,
|
197 | pp = 60,
|
198 | hay = 61,
|
199 | haynode = 62,
|
200 | use = 63,
|
201 | error = 64,
|
202 | failed = 65,
|
203 | fork = 66,
|
204 | forkwait = 67,
|
205 | redir = 68,
|
206 | fopen = 69,
|
207 | shvar = 70,
|
208 | ctx = 71,
|
209 | invoke = 72,
|
210 | runproc = 73,
|
211 | boolstatus = 74,
|
212 | test = 75,
|
213 | bracket = 76,
|
214 | push_registers = 77,
|
215 | source_guard = 78,
|
216 | is_main = 79,
|
217 | cat = 80,
|
218 | rm = 81,
|
219 | sleep = 82,
|
220 | ARRAY_SIZE = 83,
|
221 | };
|
222 | };
|
223 |
|
224 | typedef int builtin_t;
|
225 |
|
226 |
|
227 | } // namespace option_asdl
|
228 |
|
229 | #endif // OPTION_ASDL_H
|