[moulette] first listenner is working ;-)
[ozulis.git] / patches / glr.c-header-guard.patch
blob6bb6b9e9418623c8da61188153275a45ed4b2177
1 --- /usr/share/bison/glr.c 2008-12-12 09:29:32.000000000 +0000
2 +++ glr.c 2009-04-04 01:07:36.000000000 +0100
3 @@ -2631,6 +2631,7 @@
4 #endif
7 +m4_define(b4_header_prefix,m4_translit(b4_prefix, `[a-z:]', `[A-Z_]'))
8 b4_epilogue
9 dnl
10 dnl glr.cc produces its own header.
11 @@ -2641,6 +2642,8 @@
12 b4_copyright([Skeleton interface for Bison GLR parsers in C],
13 [2002, 2003, 2004, 2005, 2006])
15 +#ifndef b4_header_prefix[]_PARSER_HEADER_H
16 +# define b4_header_prefix[]_PARSER_HEADER_H
17 b4_shared_declarations
19 b4_pure_if([],
20 @@ -2650,4 +2653,5 @@
21 [extern YYLTYPE ]b4_prefix[lloc;])
23 ])])
24 +#endif /* !b4_header_prefix[]_PARSER_HEADER_H */
25 m4_divert_pop(0)