diff options
author | Rafał Mużyło <galtgendo@o2.pl> | 2011-08-03 02:51:29 +0200 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2011-08-03 17:15:28 -0400 |
commit | d519434c19d658838322ae95f28e7a19325eba0c (patch) | |
tree | 8f8d3b4202bff059e5613e7c2a900aa7b37c0633 /src/laygram.y | |
parent | 76c5f905c7178cf76cdf8a5817bb1575d8cdba82 (diff) |
Readd requred flex/bison stuff and fix it for autotools
Signed-off-by: Rafał Mużyło <galtgendo@o2.pl>
Signed-off-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/laygram.y')
-rw-r--r-- | src/laygram.y | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/laygram.y b/src/laygram.y index b17dc17..1ac05a0 100644 --- a/src/laygram.y +++ b/src/laygram.y @@ -1,3 +1,5 @@ +%name-prefix "LayYY" +%defines %{ #include <X11/Xlib.h> #include <X11/Xresource.h> @@ -10,6 +12,9 @@ #include <X11/Xmu/Converters.h> #include "LayoutP.h" +#define yysetdest LayYYsetdest +#define yywrap LayYYwrap + static LayoutPtr *dest; %} @@ -251,13 +256,12 @@ orientation : VERTICAL ; %% -int yywrap () +int yywrap (void) { return 1; } -void yysetdest (c) - LayoutPtr *c; +void yysetdest (LayoutPtr *c) { dest = c; } |