py: Declare constant data as properly constant.

Otherwise some compilers (eg without optimisation) will put this read-only
data in RAM instead of ROM.
This commit is contained in:
Damien George
2016-05-20 12:38:15 +01:00
parent a0a08b4be1
commit 3ff16ff52e
7 changed files with 8 additions and 8 deletions

View File

@@ -104,7 +104,7 @@ enum {
#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