From: K.Kosako Date: Mon, 1 Oct 2018 13:53:10 +0000 (+0900) Subject: add output -good in print_indent_tree() X-Git-Tag: v6.9.1~18^2~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3dec45a648bca756d04418d3c13986bea0f12252;p=onig add output -good in print_indent_tree() --- diff --git a/src/regcomp.c b/src/regcomp.c index 7d26898..5773f70 100644 --- a/src/regcomp.c +++ b/src/regcomp.c @@ -6512,6 +6512,7 @@ print_indent_tree(FILE* f, Node* node, int indent) { char* mode; char* dont; + char* good; if (NODE_STRING_IS_RAW(node)) mode = "-raw"; @@ -6520,12 +6521,17 @@ print_indent_tree(FILE* f, Node* node, int indent) else mode = ""; + if (NODE_STRING_IS_GOOD_AMBIG(node)) + good = "-good"; + else + good = ""; + if (NODE_STRING_IS_DONT_GET_OPT_INFO(node)) dont = " (dont-opt)"; else dont = ""; - fprintf(f, "", mode, dont, node); + fprintf(f, "", mode, good, dont, node); for (p = STR_(node)->s; p < STR_(node)->end; p++) { if (*p >= 0x20 && *p < 0x7f) fputc(*p, f);