mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00:00
parser: Cleanup parser control flags, so they display as expected to user
Instead of having multiple tables, since we have room post split of optimization and dump flags just move all the optimization and dump flags into a common table. We can if needed switch the flag entry size to a long in the future. Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -128,7 +128,7 @@ pattern_t convert_aaregex_to_pcre(const char *aare, int anchor, int glob,
|
||||
|
||||
sptr = aare;
|
||||
|
||||
if (parseopts.dfadump & DUMP_DFA_RULE_EXPR)
|
||||
if (parseopts.dump & DUMP_DFA_RULE_EXPR)
|
||||
fprintf(stderr, "aare: %s -> ", aare);
|
||||
|
||||
if (anchor)
|
||||
@@ -427,7 +427,7 @@ out:
|
||||
if (ret == FALSE)
|
||||
ptype = ePatternInvalid;
|
||||
|
||||
if (parseopts.dfadump & DUMP_DFA_RULE_EXPR)
|
||||
if (parseopts.dump & DUMP_DFA_RULE_EXPR)
|
||||
fprintf(stderr, "%s\n", pcre.c_str());
|
||||
|
||||
return ptype;
|
||||
|
Reference in New Issue
Block a user