X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Flib%2Flttng-ctl%2Ffilter%2Ffilter-ast.h;h=7f1883f29656ba1836699b11bc3178d02dfe7966;hb=9c55c24114a3ba83a423690b0e86d64c9b2fb027;hp=176716474c850b297a6858d31aded176422f8e55;hpb=d00c599e39ae45ec7c8e12e6bac6b5e58f08f817;p=lttng-tools.git diff --git a/src/lib/lttng-ctl/filter/filter-ast.h b/src/lib/lttng-ctl/filter/filter-ast.h index 176716474..7f1883f29 100644 --- a/src/lib/lttng-ctl/filter/filter-ast.h +++ b/src/lib/lttng-ctl/filter/filter-ast.h @@ -39,9 +39,6 @@ // 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; @@ -121,6 +118,7 @@ struct filter_node { AST_EXP_CONSTANT, AST_EXP_FLOAT_CONSTANT, AST_EXP_IDENTIFIER, + AST_EXP_GLOBAL_IDENTIFIER, AST_EXP_NESTED, } type; enum ast_link_type post_op; /* reverse */ @@ -188,5 +186,6 @@ int filter_visitor_bytecode_generate(struct filter_parser_ctx *ctx); void filter_bytecode_free(struct filter_parser_ctx *ctx); int filter_visitor_ir_check_binary_op_nesting(struct filter_parser_ctx *ctx); int filter_visitor_ir_check_binary_comparator(struct filter_parser_ctx *ctx); +int filter_visitor_ir_validate_string(struct filter_parser_ctx *ctx); #endif /* _FILTER_AST_H */