* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+/*
+ * Note: filter-ast.h should be included before filter-parser.h.
+ */
+
#include <urcu/list.h>
#include <stdint.h>
AST_EXP_UNKNOWN = 0,
AST_EXP_STRING,
AST_EXP_CONSTANT,
+ AST_EXP_FLOAT_CONSTANT,
AST_EXP_IDENTIFIER,
AST_EXP_NESTED,
} type;
union {
char *string;
uint64_t constant;
+ double float_constant;
char *identifier;
/*
* child can be nested.
const char *node_type(struct filter_node *node);
struct ir_op;
-struct filter_bytecode;
struct filter_parser_ctx {
yyscan_t scanner;
struct filter_ast *ast;
struct cds_list_head allocated_strings;
struct ir_op *ir_root;
- struct filter_bytecode_alloc *bytecode;
- struct filter_bytecode_alloc *bytecode_reloc;
+ struct lttng_filter_bytecode_alloc *bytecode;
+ struct lttng_filter_bytecode_alloc *bytecode_reloc;
};
struct filter_parser_ctx *filter_parser_ctx_alloc(FILE *input);