commit | 3ff16ff52e45d4c0bf1df5fa650b72d6d835451b | [log] [tgz] |
---|---|---|
author | Damien George <damien.p.george@gmail.com> | Fri May 20 12:38:15 2016 +0100 |
committer | Damien George <damien.p.george@gmail.com> | Fri May 20 12:46:20 2016 +0100 |
tree | ee959477b44d30e320271d4af728b10bafe3687f | |
parent | a0a08b4be1583aa7a4ef33d3b1b0aa6553732eca [diff] [blame] |
py: Declare constant data as properly constant. Otherwise some compilers (eg without optimisation) will put this read-only data in RAM instead of ROM.
diff --git a/py/parse.c b/py/parse.c index 0b60569..7da484c 100644 --- a/py/parse.c +++ b/py/parse.c
@@ -104,7 +104,7 @@ #undef one_or_more #undef DEF_RULE -STATIC const rule_t *rules[] = { +STATIC const rule_t *const rules[] = { #define DEF_RULE(rule, comp, kind, ...) &rule_##rule, #include "py/grammar.h" #undef DEF_RULE