OILS / cpp / preamble.h View on Github | oilshell.org

48 lines, 42 significant
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/display/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?
40using pretty_asdl::doc;
41using runtime_asdl::cmd_value;
42using syntax_asdl::command;
43using syntax_asdl::expr;
44using syntax_asdl::printf_part; // added when self._Percent() used it in
45 // function signature
46using syntax_asdl::proc_sig;
47using value_asdl::sh_lvalue; // for builtin_assign.py and builtin_misc.py
48using value_asdl::value;