skeletons: factor yacc.c and glr.c.
authorAkim Demaille <akim@lrde.epita.fr>
Tue, 12 Jun 2012 08:55:18 +0000 (10:55 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Tue, 12 Jun 2012 12:49:48 +0000 (14:49 +0200)
commitc0828abf9d81ce665d5dc9b5a2b2062e267d4114
treed7e17938df9cf3c2eba06a87b1312fa5413b07eb
parente9807a79348dee60a4d83c2b1281e9e3678b8287
skeletons: factor yacc.c and glr.c.

yacc.c and glr.c share common declarations.  Their YYLTYPE are exactly
equal, and their YYSTYPE are sufficiently alike to be fused (its
declaration was protected by YYSTYPE_IS_DECLARED in yacc.c, but not in
glr.c).  Besides, yacc.c duplicated the definitions of YYLTYPE and
YYSTYPE (*.h/*.c).

* data/c.m4 (b4_declare_yylstype): New.
* data/yacc.c, data/glr.c: Use it.
data/c.m4
data/glr.c
data/yacc.c