glr: eliminate last bits of unwanted locations.

* data/glr.c (YYLTYPE): Do not define when locations are
not demanded.
Adjust all dependencies.
This commit is contained in:
Akim Demaille
2012-04-10 08:07:32 +02:00
parent debe2c03c4
commit d834eca014
2 changed files with 20 additions and 18 deletions

9
NEWS
View File

@@ -9,7 +9,14 @@ Bison News
** yacc.c: YYBACKUP works as expected.
** glr.c: __attribute__ is preserved:
** glr.c improvements:
*** Location support is eliminated when not requested:
GLR parsers used to include location-related code even when
locations were not requested, and therefore not even usable.
*** __attribute__ is preserved:
__attribute__ is no longer disabled when __STRICT_ANSI__ is defined
(i.e., when -std is passed to GCC).