1 | // cpp/preamble.h: declarations to run oils_for_unix.mycpp
|
2 |
|
3 | #include <errno.h>
|
4 | #include <fcntl.h> // e.g. F_DUPFD used directly
|
5 | #include <fnmatch.h> // FNM_CASEFOLD in osh/sh_expr_eval.py
|
6 | #include <regex.h> // REG_ICASE in osh/sh_expr_eval.py
|
7 | #include <sys/resource.h> // RLIM_INFINITY in builtin/process_osh.py
|
8 | #include <sys/wait.h> // e.g. WIFSIGNALED() called directly
|
9 |
|
10 | #include "_gen/core/optview.h"
|
11 | #include "_gen/core/runtime.asdl.h"
|
12 | #include "_gen/core/value.asdl.h"
|
13 | #include "_gen/data_lang/nil8.asdl.h"
|
14 | #include "_gen/data_lang/pretty.asdl.h"
|
15 | #include "_gen/frontend/arg_types.h"
|
16 | #include "_gen/frontend/consts.h"
|
17 | #include "_gen/frontend/help_meta.h"
|
18 | #include "_gen/frontend/id_kind.asdl.h" // syntax.asdl depends on this
|
19 | #include "_gen/frontend/option.asdl.h"
|
20 | #include "_gen/frontend/signal.h"
|
21 | #include "_gen/frontend/syntax.asdl.h"
|
22 | #include "_gen/frontend/types.asdl.h"
|
23 | #include "_gen/ysh/grammar_nt.h"
|
24 | #include "cpp/core.h"
|
25 | #include "cpp/data_lang.h"
|
26 | #include "cpp/fanos.h"
|
27 | #include "cpp/frontend_flag_spec.h"
|
28 | #include "cpp/frontend_match.h"
|
29 | #include "cpp/frontend_pyreadline.h"
|
30 | #include "cpp/libc.h"
|
31 | #include "cpp/osh.h"
|
32 | #include "cpp/osh_tdop.h"
|
33 | #include "cpp/pgen2.h"
|
34 | #include "cpp/pylib.h"
|
35 | #include "cpp/stdlib.h"
|
36 | #include "cpp/translation_stubs.h"
|
37 | #include "mycpp/runtime.h" // runtime library e.g. with Python data structures
|
38 |
|
39 | // TODO: Why do we need these?
|
40 | using pretty_asdl::doc;
|
41 | using runtime_asdl::cmd_value;
|
42 | using syntax_asdl::command;
|
43 | using syntax_asdl::expr;
|
44 | using syntax_asdl::proc_sig;
|
45 | using value_asdl::sh_lvalue; // for builtin_assign.py and builtin_misc.py
|
46 | using value_asdl::value;
|