projects
/
platform
/
upstream
/
libxkbcommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
409f27d
)
parser: add a workaround for byacc
author
Ran Benita
<ran234@gmail.com>
Sat, 28 Sep 2013 22:29:47 +0000
(
01:29
+0300)
committer
Ran Benita
<ran234@gmail.com>
Sat, 28 Sep 2013 22:29:47 +0000
(
01:29
+0300)
Unlike bison, byacc outputs its own parser code *after* our own parser.y
code, which includes the #undef. So this fix is needed for the 'scanner'
-> 'param->scanner' translation to work in the parser.c code generated
by byacc.
Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/parser.y
patch
|
blob
|
history
diff --git
a/src/xkbcomp/parser.y
b/src/xkbcomp/parser.y
index
8b3ca5b
..
bb4be7b
100644
(file)
--- a/
src/xkbcomp/parser.y
+++ b/
src/xkbcomp/parser.y
@@
-798,3
+798,5
@@
parse(struct xkb_context *ctx, void *scanner, const char *map)
return first;
}
+
+#define scanner param->scanner