Filter fix: support bison 2.6
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 7 Aug 2012 15:19:52 +0000 (11:19 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 7 Aug 2012 15:19:52 +0000 (11:19 -0400)
Bison 2.6 generates warnings and errors if filter-ast.h is not included
before filter-parser.h.

Reported-by: Christian Babeux <christian.babeux@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/lib/lttng-ctl/filter-ast.h
src/lib/lttng-ctl/filter-grammar-test.c
src/lib/lttng-ctl/filter-parser.y
src/lib/lttng-ctl/filter-visitor-generate-ir.c
src/lib/lttng-ctl/filter-visitor-ir-check-binary-comparator.c
src/lib/lttng-ctl/filter-visitor-ir-check-binary-op-nesting.c
src/lib/lttng-ctl/filter-visitor-set-parent.c
src/lib/lttng-ctl/filter-visitor-xml.c
src/lib/lttng-ctl/lttng-ctl.c

index a42ac164d605d0dfe1cae5f27a6c18ec427153f7..97793c00bf7f199fea49aa508282552b6ce4bf84 100644 (file)
  * 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>
 
index b47b1e9500c5b3a1d7f44112955a877f4fd972c3..2b9a27dc299543beb38e3191ecd662c406121e40 100644 (file)
@@ -26,8 +26,8 @@
 #include <assert.h>
 #include <errno.h>
 #include <inttypes.h>
-#include "filter-parser.h"
 #include "filter-ast.h"
+#include "filter-parser.h"
 #include "filter-bytecode.h"
 
 int main(int argc, char **argv)
index d6f00a095e35f934019145a28dcd94ebe2cdd21d..ea433522d02962f9ab78622a19b0d03bf901bf3a 100644 (file)
@@ -29,8 +29,8 @@
 #include <assert.h>
 #include <errno.h>
 #include <inttypes.h>
-#include "filter-parser.h"
 #include "filter-ast.h"
+#include "filter-parser.h"
 
 int yydebug;
 int filter_parser_debug = 0;
index dd0d7ffaf7137fc49f938462e4e7c4950a5a9cd8..899713ee6aab6ff27870ce70bb7ce8020290ad4a 100644 (file)
@@ -26,8 +26,8 @@
 #include <assert.h>
 #include <errno.h>
 #include <inttypes.h>
-#include "filter-parser.h"
 #include "filter-ast.h"
+#include "filter-parser.h"
 #include "filter-ir.h"
 
 static
index fff9b51689b587f0df69705aae1b54990b57232c..13da71edbbeed1a2d4eb548f1b1e251ef5987221 100644 (file)
@@ -26,8 +26,8 @@
 #include <assert.h>
 #include <errno.h>
 #include <inttypes.h>
-#include "filter-parser.h"
 #include "filter-ast.h"
+#include "filter-parser.h"
 #include "filter-ir.h"
 
 static
index 64048a5844a6cba2e88391c4009f612309f0e512..08488deffb243684968aca5fdc8f9412dfb5bf67 100644 (file)
@@ -26,8 +26,8 @@
 #include <assert.h>
 #include <errno.h>
 #include <inttypes.h>
-#include "filter-parser.h"
 #include "filter-ast.h"
+#include "filter-parser.h"
 #include "filter-ir.h"
 
 static
index 2cc5f53f62275d0fbd372ee37424ca4bc29ec04a..2ad707f6d9c44afc5cfd766a1a6dd11f9c8e1b4a 100644 (file)
@@ -26,8 +26,8 @@
 #include <assert.h>
 #include <errno.h>
 #include <inttypes.h>
-#include "filter-parser.h"
 #include "filter-ast.h"
+#include "filter-parser.h"
 
 static
 int update_child(struct filter_node *parent,
index bf52724ef4df253bcdfa715cbd4589b7772b152d..b3a1ac9597ca7c1904b58328bc874accf6f7a490 100644 (file)
@@ -26,8 +26,8 @@
 #include <assert.h>
 #include <errno.h>
 #include <inttypes.h>
-#include "filter-parser.h"
 #include "filter-ast.h"
+#include "filter-parser.h"
 
 #define fprintf_dbg(fd, fmt, args...)  fprintf(fd, "%s: " fmt, __func__, ## args)
 
index b6487b7c25f51c490ecb3f3bf28343244a6b680d..ba0c4c8269a301d31c0183c02592f0d77e363b8e 100644 (file)
@@ -33,8 +33,8 @@
 #include <common/sessiond-comm/sessiond-comm.h>
 #include <lttng/lttng.h>
 
-#include "filter-parser.h"
 #include "filter-ast.h"
+#include "filter-parser.h"
 #include "filter-bytecode.h"
 #include "memstream.h"
 
This page took 0.029423 seconds and 4 git commands to generate.