diff options
author | Damien George <damien.p.george@gmail.com> | 2015-01-01 20:27:54 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-01-01 20:32:09 +0000 |
commit | 51dfcb4bb7613ed164952712d9a5235a7b833cde (patch) | |
tree | c1856c7db0ff6d5ae51190be4325804a0aad43f4 /py/compile.c | |
parent | db1ac360c39aeedd28b6ef5d653faaa14c3ce01e (diff) |
py: Move to guarded includes, everywhere in py/ core.
Addresses issue #1022.
Diffstat (limited to 'py/compile.c')
-rw-r--r-- | py/compile.c | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/py/compile.c b/py/compile.c index 66e2996c4..b2ba01cc9 100644 --- a/py/compile.c +++ b/py/compile.c @@ -31,26 +31,18 @@ #include <assert.h> #include <math.h> -#include "mpconfig.h" -#include "misc.h" -#include "qstr.h" -#include "lexer.h" -#include "parse.h" -#include "runtime0.h" -#include "obj.h" -#include "emitglue.h" -#include "scope.h" -#include "emit.h" -#include "compile.h" -#include "runtime.h" -#include "builtin.h" -#include "smallint.h" +#include "py/scope.h" +#include "py/emit.h" +#include "py/compile.h" +#include "py/smallint.h" +#include "py/runtime.h" +#include "py/builtin.h" // TODO need to mangle __attr names typedef enum { #define DEF_RULE(rule, comp, kind, ...) PN_##rule, -#include "grammar.h" +#include "py/grammar.h" #undef DEF_RULE PN_maximum_number_of, PN_string, // special node for non-interned string @@ -2937,7 +2929,7 @@ STATIC compile_function_t compile_function[] = { #define nc NULL #define c(f) compile_##f #define DEF_RULE(rule, comp, kind, ...) comp, -#include "grammar.h" +#include "py/grammar.h" #undef nc #undef c #undef DEF_RULE |