Code

frontend/parser: Made clear that parser modes are flags.
authorSebastian Harl <sh@tokkee.org>
Fri, 17 Oct 2014 08:35:07 +0000 (10:35 +0200)
committerSebastian Harl <sh@tokkee.org>
Fri, 17 Oct 2014 08:35:07 +0000 (10:35 +0200)
It doesn't make a difference so far, but will avoid problems in the future.

src/include/frontend/parser.h

index d2dfb01f723985d54cf03866740db3479bbec448..d78ab20bade0e726e769fc595ec9c7bc0599306d 100644 (file)
@@ -38,8 +38,8 @@ extern "C" {
 /* parser modes */
 enum {
        SDB_PARSE_DEFAULT = 0,
-       SDB_PARSE_COND,
-       SDB_PARSE_EXPR,
+       SDB_PARSE_COND    = 1 << 1,
+       SDB_PARSE_EXPR    = 1 << 2,
 };
 
 /* YY_EXTRA data */