Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/acpica/dist/compiler Now that our yacc supp...



details:   https://anonhg.NetBSD.org/src/rev/01f9a0fe5ca7
branches:  trunk
changeset: 325594:01f9a0fe5ca7
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Dec 30 22:32:45 2013 +0000

description:
Now that our yacc supports providing yytname[] and does the name protection
automatically (as it should, unlike bison), elide the name protection hacks.

diffstat:

 sys/external/bsd/acpica/dist/compiler/aslcompiler.y |  2 ++
 sys/external/bsd/acpica/dist/compiler/dtparser.y    |  2 ++
 sys/external/bsd/acpica/dist/compiler/prparser.y    |  2 ++
 3 files changed, 6 insertions(+), 0 deletions(-)

diffs (39 lines):

diff -r 09cc5c153cc6 -r 01f9a0fe5ca7 sys/external/bsd/acpica/dist/compiler/aslcompiler.y
--- a/sys/external/bsd/acpica/dist/compiler/aslcompiler.y       Mon Dec 30 21:45:51 2013 +0000
+++ b/sys/external/bsd/acpica/dist/compiler/aslcompiler.y       Mon Dec 30 22:32:45 2013 +0000
@@ -72,7 +72,9 @@
 #define static
 #undef alloca
 #define alloca              AslLocalAllocate
+#ifndef yytname
 #define yytname             AslCompilername
+#endif
 
 #define YYINITDEPTH         600             /* State stack depth */
 #define YYDEBUG             1               /* Enable debug output */
diff -r 09cc5c153cc6 -r 01f9a0fe5ca7 sys/external/bsd/acpica/dist/compiler/dtparser.y
--- a/sys/external/bsd/acpica/dist/compiler/dtparser.y  Mon Dec 30 21:45:51 2013 +0000
+++ b/sys/external/bsd/acpica/dist/compiler/dtparser.y  Mon Dec 30 22:32:45 2013 +0000
@@ -58,7 +58,9 @@
 
 /* Bison/yacc configuration */
 
+#ifndef yytname
 #define yytname             DtParsername
+#endif
 #define YYDEBUG             1               /* Enable debug output */
 #define YYERROR_VERBOSE     1               /* Verbose error messages */
 #define YYFLAG              -32768
diff -r 09cc5c153cc6 -r 01f9a0fe5ca7 sys/external/bsd/acpica/dist/compiler/prparser.y
--- a/sys/external/bsd/acpica/dist/compiler/prparser.y  Mon Dec 30 21:45:51 2013 +0000
+++ b/sys/external/bsd/acpica/dist/compiler/prparser.y  Mon Dec 30 22:32:45 2013 +0000
@@ -57,7 +57,9 @@
 
 /* Bison/yacc configuration */
 
+#ifndef yytname
 #define yytname             PrParsername
+#endif
 #define YYDEBUG             1               /* Enable debug output */
 #define YYERROR_VERBOSE     1               /* Verbose error messages */
 #define YYFLAG              -32768



Home | Main Index | Thread Index | Old Index