aboutsummaryrefslogtreecommitdiff
path: root/py/parse.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-12-26 13:39:26 +1100
committerDamien George <damien.p.george@gmail.com>2017-12-29 00:13:36 +1100
commitd3fbfa491f46ec7e3f69d12e037cb3da7b3ae984 (patch)
treedc61474d16aaf40dec8c64bbab4e9589d7e2452d /py/parse.c
parent0016a45368d8e7272d1c1f891994d6de4effcb40 (diff)
py/parse: Update debugging code to compile on 64-bit arch.
Diffstat (limited to 'py/parse.c')
-rw-r--r--py/parse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/py/parse.c b/py/parse.c
index 8e0793185..238c94695 100644
--- a/py/parse.c
+++ b/py/parse.c
@@ -872,14 +872,14 @@ mp_parse_tree_t mp_parse(mp_lexer_t *lex, mp_parse_input_kind_t input_kind) {
const uint16_t *rule_arg = get_rule_arg(rule_id);
size_t n = rule_act & RULE_ACT_ARG_MASK;
- /*
+ #if 0
// debugging
- printf("depth=%d ", parser.rule_stack_top);
+ printf("depth=" UINT_FMT " ", parser.rule_stack_top);
for (int j = 0; j < parser.rule_stack_top; ++j) {
printf(" ");
}
- printf("%s n=%d i=%d bt=%d\n", rule_name_table[rule_id], n, i, backtrack);
- */
+ printf("%s n=" UINT_FMT " i=" UINT_FMT " bt=%d\n", rule_name_table[rule_id], n, i, backtrack);
+ #endif
switch (rule_act & RULE_ACT_KIND_MASK) {
case RULE_ACT_OR: