X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=src%2Flib%2Flttng-ctl%2Ffilter-ast.h;h=176716474c850b297a6858d31aded176422f8e55;hb=32dd26fbc3c69fe677a7917535e10ace066e674c;hp=d66fb8b58764a5bb638e4c3781106be75448236a;hpb=9d3e6f62fde8c9ca7335ba12ee4560bc887b41a5;p=lttng-tools.git diff --git a/src/lib/lttng-ctl/filter-ast.h b/src/lib/lttng-ctl/filter-ast.h index d66fb8b58..176716474 100644 --- a/src/lib/lttng-ctl/filter-ast.h +++ b/src/lib/lttng-ctl/filter-ast.h @@ -35,6 +35,13 @@ fprintf(stdout, "[debug] " fmt, ## args); \ } while (0) +// the parameter name (of the reentrant 'yyparse' function) +// data is a pointer to a 'SParserParam' structure +//#define YYPARSE_PARAM parser_ctx + +// the argument for the 'yylex' function +#define YYLEX_PARAM ((struct filter_parser_ctx *) parser_ctx)->scanner + #ifndef YY_TYPEDEF_YY_SCANNER_T #define YY_TYPEDEF_YY_SCANNER_T typedef void* yyscan_t; @@ -84,6 +91,7 @@ enum unary_op_type { AST_UNARY_PLUS, AST_UNARY_MINUS, AST_UNARY_NOT, + AST_UNARY_BIN_NOT, }; enum ast_link_type {