Simplify y.tab.c when location tracking is disabled.

* data/yacc.c: Do not check YYLTYPE_IS_TRIVIAL if location
tracking is not enabled.  Instead, unconditionally define
YY_LOCATION_PRINT as a no-op for backward compatibility.
This commit is contained in:
Jonathan Nieder authored and Joel E. Denny committed 2009-12-16 01:21:31 -05:00
1 parent ae93128c96
commit fcd32abd3a
2 files changed
+14 -1

No files matched your search

+7
View File
@@ -1,3 +1,10 @@
2009-12-15 Jonathan Nieder <[email protected]> (tiny change)
Simplify y.tab.c when location tracking is disabled.
* data/yacc.c: Do not check YYLTYPE_IS_TRIVIAL if location
tracking is not enabled. Instead, unconditionally define
YY_LOCATION_PRINT as a no-op for backward compatibility.
2009-12-15 Jonathan Nieder <[email protected]> (tiny change)
Avoid warnings from gcc -Wundef y.tab.c.