]> granicus.if.org Git - onig/commitdiff
update for ONIG_DEBUG_PARSE_TREE
authorK.Kosako <kosako@sofnec.co.jp>
Wed, 12 Jul 2017 08:53:41 +0000 (17:53 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Wed, 12 Jul 2017 08:53:41 +0000 (17:53 +0900)
src/regcomp.c

index fc5496c66efd8d694afbdafebdf31026d94bdc47..7adbe52034d996c4fa8817dc69b441848a8da783 100644 (file)
@@ -7222,7 +7222,7 @@ print_indent_tree(FILE* f, Node* node, int indent)
     fprintf(f, "<enclosure:%p> ", node);
     switch (ENCLOSURE_(node)->type) {
     case ENCLOSURE_OPTION:
-      fprintf(f, "option:%d", ENCLOSURE_(node)->o.option);
+      fprintf(f, "option:%d", ENCLOSURE_(node)->o.options);
       break;
     case ENCLOSURE_MEMORY:
       fprintf(f, "memory:%d", ENCLOSURE_(node)->m.regnum);
@@ -7241,12 +7241,18 @@ print_indent_tree(FILE* f, Node* node, int indent)
   case NODE_GIMMICK:
     fprintf(f, "<gimmick:%p> ", node);
     switch (GIMMICK_(node)->type) {
+    case GIMMICK_FAIL:
+      fprintf(f, "fail");
+      break;
     case GIMMICK_KEEP:
       fprintf(f, "keep:%d", GIMMICK_(node)->id);
       break;
     case GIMMICK_SAVE:
       fprintf(f, "save:%d:%d", GIMMICK_(node)->detail_type, GIMMICK_(node)->id);
       break;
+    case GIMMICK_UPDATE_VAR:
+      fprintf(f, "update_var:%d:%d", GIMMICK_(node)->detail_type, GIMMICK_(node)->id);
+      break;
     }
     break;