#include <stdio.h>
#include <stdint.h>
-#if defined(__cplusplus)
-extern "C" {
-#endif
-
#define printf_debug(fmt, args...) \
do { \
if (filter_parser_debug) \
AST_LINK_BRACKET,
};
+enum ast_expt_type {
+ AST_EXP_UNKNOWN = 0,
+ AST_EXP_STRING,
+ AST_EXP_CONSTANT,
+ AST_EXP_FLOAT_CONSTANT,
+ AST_EXP_IDENTIFIER,
+ AST_EXP_GLOBAL_IDENTIFIER,
+ AST_EXP_NESTED,
+};
+
struct filter_node {
/*
* Parent node is only set on demand by specific visitor.
struct filter_node *child;
} root;
struct {
- enum {
- AST_EXP_UNKNOWN = 0,
- AST_EXP_STRING,
- AST_EXP_CONSTANT,
- AST_EXP_FLOAT_CONSTANT,
- AST_EXP_IDENTIFIER,
- AST_EXP_GLOBAL_IDENTIFIER,
- AST_EXP_NESTED,
- } type;
+ enum ast_expt_type type;
enum ast_link_type post_op; /* reverse */
enum ast_link_type pre_op; /* forward */
union {
int filter_visitor_ir_normalize_glob_patterns(struct filter_parser_ctx *ctx);
int filter_visitor_ir_validate_globbing(struct filter_parser_ctx *ctx);
-#if defined(__cplusplus)
-}
-#endif
-
#endif /* _FILTER_AST_H */