[gcalctool] Change bison syntax to be compatible with version 2.3 (Robert Ancell, Bug #589350)
- From: Robert Ancell <rancell src gnome org>
- To: svn-commits-list gnome org
- Subject: [gcalctool] Change bison syntax to be compatible with version 2.3 (Robert Ancell, Bug #589350)
- Date: Fri, 24 Jul 2009 05:28:10 +0000 (UTC)
commit 5595532f844cb18a5b92b391faee13448adf4b92
Author: Robert Ancell <robert ancell gmail com>
Date: Fri Jul 24 15:26:57 2009 +1000
Change bison syntax to be compatible with version 2.3 (Robert Ancell, Bug #589350)
ChangeLog | 4 ++++
src/Makefile.am | 2 +-
src/mp-equation-parser.y | 4 ++--
3 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2805dd9..165c155 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,10 @@
gcalctool change history.
=========================
+2009-07-24 Robert Ancell <robert ancell gmail com>
+
+ * Change bison syntax to be compatible with version 2.3 (Robert Ancell, Bug #589350)
+
2009-07-17 Robert Ancell <robert ancell gmail com>
* Perform power and factorials before negation so -1! and -1^0.5
diff --git a/src/Makefile.am b/src/Makefile.am
index 688b37a..bae900e 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -64,7 +64,7 @@ libparser.a: \
$(RANLIB) libparser.a
mp-equation-parser.c mp-equation-parser.h: mp-equation-parser.y
- bison -d -o mp-equation-parser.c $(srcdir)/mp-equation-parser.y
+ $(YACC) -d -o mp-equation-parser.c $(srcdir)/mp-equation-parser.y
mp-equation-lexer.c mp-equation-lexer.h: mp-equation-lexer.l
$(LEX) $(srcdir)/mp-equation-lexer.l
diff --git a/src/mp-equation-parser.y b/src/mp-equation-parser.y
index 94864e8..e8e5e35 100644
--- a/src/mp-equation-parser.y
+++ b/src/mp-equation-parser.y
@@ -92,8 +92,8 @@ static void do_mod(yyscan_t yyscanner, const MPNumber *x, const MPNumber *y, MPN
}
%}
-%define api.pure
-%name-prefix "_mp_equation_"
+%pure-parser
+%name-prefix="_mp_equation_"
%locations
%parse-param {yyscan_t yyscanner}
%lex-param {yyscan_t yyscanner}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]