From c6228685078f2c568e165f8e2689d624c41649d0 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 24 Jan 2013 18:33:41 -0500 Subject: [PATCH] Namespace lttngctl filter flex/bison symbols Signed-off-by: Mathieu Desnoyers Signed-off-by: David Goulet --- src/lib/lttng-ctl/filter/Makefile.am | 4 +- src/lib/lttng-ctl/filter/filter-symbols.h | 55 +++++++++++++++++++++++ 2 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 src/lib/lttng-ctl/filter/filter-symbols.h diff --git a/src/lib/lttng-ctl/filter/Makefile.am b/src/lib/lttng-ctl/filter/Makefile.am index 85a427447..4ff345aa4 100644 --- a/src/lib/lttng-ctl/filter/Makefile.am +++ b/src/lib/lttng-ctl/filter/Makefile.am @@ -3,7 +3,8 @@ AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src \ noinst_PROGRAMS = filter-grammar-test noinst_LTLIBRARIES = libfilter.la -noinst_HEADERS = filter-ast.h +noinst_HEADERS = filter-ast.h \ + filter-symbols.h BUILT_SOURCES = filter-parser.h AM_YFLAGS = -t -d -v @@ -20,6 +21,7 @@ libfilter_la_SOURCES = filter-lexer.l filter-parser.y \ filter-bytecode.h \ filter-ir.h \ memstream.h +libfilter_la_CFLAGS = -include filter-symbols.h filter_grammar_test_SOURCES = filter-grammar-test.c filter_grammar_test_LDADD = libfilter.la diff --git a/src/lib/lttng-ctl/filter/filter-symbols.h b/src/lib/lttng-ctl/filter/filter-symbols.h new file mode 100644 index 000000000..fd540c6fb --- /dev/null +++ b/src/lib/lttng-ctl/filter/filter-symbols.h @@ -0,0 +1,55 @@ +#ifndef _FILTER_SYMBOLS_H +#define _FILTER_SYMBOLS_H + +/* + * filter-symbols.h + * + * LTTng filter flex/bison symbol prefixes + * + * Copyright 2012 - Mathieu Desnoyers + * + * This library is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License, version 2.1 only, + * as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this library; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#define yy_create_buffer lttng_yy_create_buffer +#define yy_delete_buffer lttng_yy_delete_buffer +#define yy_flush_buffer lttng_yy_flush_buffer +#define yy_scan_buffer lttng_yy_scan_buffer +#define yy_scan_bytes lttng_yy_scan_bytes +#define yy_scan_string lttng_yy_scan_string +#define yy_switch_to_buffer lttng_yy_switch_to_buffer +#define yyalloc lttng_yyalloc +#define yyfree lttng_yyfree +#define yyget_column lttng_yyget_column +#define yyget_debug lttng_yyget_debug +#define yyget_extra lttng_yyget_extra +#define yyget_in lttng_yyget_in +#define yyget_leng lttng_yyget_leng +#define yyget_lineno lttng_yyget_lineno +#define yyget_lval lttng_yyget_lval +#define yyget_out lttng_yyget_out +#define yyget_text lttng_yyget_text +#define yylex_init lttng_yylex_init +#define yypop_buffer_state lttng_yypop_buffer_state +#define yypush_buffer_state lttng_yypush_buffer_state +#define yyrealloc lttng_yyrealloc +#define yyset_column lttng_yyset_column +#define yyset_debug lttng_yyset_debug +#define yyset_extra lttng_yyset_extra +#define yyset_in lttng_yyset_in +#define yyset_lineno lttng_yyset_lineno +#define yyset_lval lttng_yyset_lval +#define yyset_out lttng_yyset_out + +#endif /* _FILTER_SYMBOLS_H */ -- 2.34.1