projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use compiler-agnostic defines to silence warning
[lttng-tools.git]
/
src
/
common
/
filter
/
filter-ast.hpp
diff --git
a/src/common/filter/filter-ast.hpp
b/src/common/filter/filter-ast.hpp
index 2b460b401ef669d87a3ab9da67e973a564914e59..8448717d67c40452b3927f2c4eeac1713b7aeb89 100644
(file)
--- a/
src/common/filter/filter-ast.hpp
+++ b/
src/common/filter/filter-ast.hpp
@@
-16,23
+16,23
@@
* Note: filter-ast.h should be included before filter-parser.h.
*/
* Note: filter-ast.h should be included before filter-parser.h.
*/
-#include <urcu/list.h>
-#include <stdio.h>
#include <stdint.h>
#include <stdint.h>
+#include <stdio.h>
+#include <urcu/list.h>
-#define printf_debug(fmt, args...)
\
- do {
\
- if (filter_parser_debug)
\
- fprintf(stdout, "[debug] " fmt, ##
args);
\
+#define printf_debug(fmt, args...) \
+ do { \
+ if (filter_parser_debug) \
+ fprintf(stdout, "[debug] " fmt, ##
args);
\
} while (0)
// the parameter name (of the reentrant 'yyparse' function)
// data is a pointer to a 'SParserParam' structure
} while (0)
// the parameter name (of the reentrant 'yyparse' function)
// data is a pointer to a 'SParserParam' structure
-//
#define YYPARSE_PARAM
parser_ctx
+//
#define YYPARSE_PARAM
parser_ctx
#ifndef YY_TYPEDEF_YY_SCANNER_T
#define YY_TYPEDEF_YY_SCANNER_T
#ifndef YY_TYPEDEF_YY_SCANNER_T
#define YY_TYPEDEF_YY_SCANNER_T
-
typedef void* yyscan_t
;
+
using yyscan_t = void *
;
#endif
extern int filter_parser_debug;
#endif
extern int filter_parser_debug;
@@
-117,8
+117,8
@@
struct filter_node {
} root;
struct {
enum ast_expt_type type;
} root;
struct {
enum ast_expt_type type;
- enum ast_link_type post_op;
/* reverse */
- enum ast_link_type pre_op;
/* forward */
+ enum ast_link_type post_op; /* reverse */
+ enum ast_link_type pre_op; /* forward */
union {
const char *string;
uint64_t constant;
union {
const char *string;
uint64_t constant;
@@
-169,17
+169,15
@@
struct filter_parser_ctx {
struct filter_parser_ctx *filter_parser_ctx_alloc(FILE *input);
void filter_parser_ctx_free(struct filter_parser_ctx *parser_ctx);
int filter_parser_ctx_append_ast(struct filter_parser_ctx *parser_ctx);
struct filter_parser_ctx *filter_parser_ctx_alloc(FILE *input);
void filter_parser_ctx_free(struct filter_parser_ctx *parser_ctx);
int filter_parser_ctx_append_ast(struct filter_parser_ctx *parser_ctx);
-int filter_parser_ctx_create_from_filter_expression(
-
const char *filter_expression,
struct filter_parser_ctx **ctxp);
+int filter_parser_ctx_create_from_filter_expression(
const char *filter_expression,
+
struct filter_parser_ctx **ctxp);
-static inline
-struct filter_ast *filter_parser_get_ast(struct filter_parser_ctx *parser_ctx)
+static inline struct filter_ast *filter_parser_get_ast(struct filter_parser_ctx *parser_ctx)
{
return parser_ctx->ast;
}
{
return parser_ctx->ast;
}
-int filter_visitor_print_xml(struct filter_parser_ctx *ctx, FILE *stream,
- int indent);
+int filter_visitor_print_xml(struct filter_parser_ctx *ctx, FILE *stream, int indent);
int filter_visitor_ir_generate(struct filter_parser_ctx *ctx);
void filter_ir_free(struct filter_parser_ctx *ctx);
int filter_visitor_bytecode_generate(struct filter_parser_ctx *ctx);
int filter_visitor_ir_generate(struct filter_parser_ctx *ctx);
void filter_ir_free(struct filter_parser_ctx *ctx);
int filter_visitor_bytecode_generate(struct filter_parser_ctx *ctx);
This page took
0.024552 seconds
and
4
git commands to generate.