yacc.c: factor.
authorAkim Demaille <akim@lrde.epita.fr>
Tue, 12 Jun 2012 12:40:18 +0000 (14:40 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Wed, 13 Jun 2012 19:52:38 +0000 (21:52 +0200)
commitae6bdabbf6bfe6a8a0ab26b26ab66c0c0406fd15
treec03672ee178ab319bdf21b6dcbfda32299ba1811
parentc0828abf9d81ce665d5dc9b5a2b2062e267d4114
yacc.c: factor.

yacc.c used to include two almost identical sections: one for the *.h
file, and another for the *.c file.  The main difference is that in
the *.c file we used the yy* names (as %name-prefix is handled by
"#define yy* <prefix>*" before), while the *.hh used <prefix>* names.
Keep only the later.  If this is troublesome, b4_shared_declarations
can easily take the desired prefix as argument.

* data/yacc.c (b4_shared_declarations): New.
Use it to factor duplicated declarations.
data/yacc.c