diff options
author | Damien George <damien.p.george@gmail.com> | 2014-12-20 18:41:59 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-12-20 18:41:59 +0000 |
commit | 6efa66f12513e19fdbfb7b4199342113c2731512 (patch) | |
tree | 742e5302e4eab86f7856ebd9db74e9140f30e481 | |
parent | b47ea4eadd53374b74bf8fcbfa6580c89e2650f9 (diff) | |
download | micropython-6efa66f12513e19fdbfb7b4199342113c2731512.tar.gz micropython-6efa66f12513e19fdbfb7b4199342113c2731512.zip |
py: Remove unnecessary RULE_none and PN_none from parser.
-rw-r--r-- | py/compile.c | 2 | ||||
-rw-r--r-- | py/emitinlinethumb.c | 1 | ||||
-rw-r--r-- | py/parse.c | 2 |
3 files changed, 0 insertions, 5 deletions
diff --git a/py/compile.c b/py/compile.c index 9e529443e6..972ab83182 100644 --- a/py/compile.c +++ b/py/compile.c @@ -49,7 +49,6 @@ // TODO need to mangle __attr names typedef enum { - PN_none = 0, #define DEF_RULE(rule, comp, kind, ...) PN_##rule, #include "grammar.h" #undef DEF_RULE @@ -2903,7 +2902,6 @@ STATIC void compile_yield_expr(compiler_t *comp, mp_parse_node_struct_t *pns) { typedef void (*compile_function_t)(compiler_t*, mp_parse_node_struct_t*); STATIC compile_function_t compile_function[] = { - NULL, #define nc NULL #define c(f) compile_##f #define DEF_RULE(rule, comp, kind, ...) comp, diff --git a/py/emitinlinethumb.c b/py/emitinlinethumb.c index c0beaef61e..4cf880fab7 100644 --- a/py/emitinlinethumb.c +++ b/py/emitinlinethumb.c @@ -45,7 +45,6 @@ #if MICROPY_EMIT_INLINE_THUMB typedef enum { - PN_none = 0, #define DEF_RULE(rule, comp, kind, ...) PN_##rule, #include "grammar.h" #undef DEF_RULE diff --git a/py/parse.c b/py/parse.c index 07ceceeeb7..ae1fe65e75 100644 --- a/py/parse.c +++ b/py/parse.c @@ -68,7 +68,6 @@ typedef struct _rule_t { } rule_t; enum { - RULE_none = 0, #define DEF_RULE(rule, comp, kind, ...) RULE_##rule, #include "grammar.h" #undef DEF_RULE @@ -105,7 +104,6 @@ enum { #undef DEF_RULE STATIC const rule_t *rules[] = { - NULL, #define DEF_RULE(rule, comp, kind, ...) &rule_##rule, #include "grammar.h" #undef DEF_RULE |