[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 6/7] maint: fix bison's own header guards.
From: |
Akim Demaille |
Subject: |
[PATCH 6/7] maint: fix bison's own header guards. |
Date: |
Mon, 23 Jul 2012 14:03:24 +0200 |
Because I'm using a VPATH build with an absolute srcdir, I have
GRAM__USERS_AKIM_SRC_GNU_BISON_SRC_PARSE_GRAM_H. Before, I was using
a relative srcdir, and had GRAM_______SRC_PARSE_GRAM_H (coming from
../../). Let it be GRAM_SRC_PARSE_GRAM_H.
* tests/bison.in: Do not depend on the value of $top_srcdir for
Bison itself.
If we were to use relative paths from .c to .y, we would not have
this problem.
---
tests/bison.in | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/bison.in b/tests/bison.in
index f004a57..b8e0e05 100644
--- a/tests/bison.in
+++ b/tests/bison.in
@@ -40,8 +40,9 @@ do
# post-processes the synclines on y.tab.c itself. Don't let it
# do it. Besides, it leaves "parse-gram.y" as the source,
# dropping the src/ part.
- $PERL -pi -e 's{"y\.tab\.}{"src/parse-gram.}g;' \
- -e 's{".*/(parse-gram\.y)"}{"src/$1"}g;' \
+ $PERL -pi -e 's{"y\.tab\.}{"src/parse-gram.}g;' \
+ -e 's{".*/(parse-gram\.y)"}{"src/$1"}g;' \
+ -e 's{GRAM_Y_TAB_H}{GRAM_SRC_PARSE_GRAM_H}g;' \
y.tab.[ch]
fi
;;
--
1.7.11.2
- [PATCH 0/7] {maint} use b4_token, Akim Demaille, 2012/07/23
- [PATCH 6/7] maint: fix bison's own header guards.,
Akim Demaille <=
- [PATCH 4/7] style changes., Akim Demaille, 2012/07/23
- [PATCH 3/7] autoconf: update., Akim Demaille, 2012/07/23
- [PATCH 5/7] maint: add missing const., Akim Demaille, 2012/07/23
- [PATCH 2/7] output: no longer use b4_tokens., Akim Demaille, 2012/07/23
- [PATCH 1/7] output: use the token list to define the yytokentype, Akim Demaille, 2012/07/23
- [PATCH 7/7] maint: regen., Akim Demaille, 2012/07/23