]> git.saurik.com Git - bison.git/commit - lib/yyerror.c
build: avoid possibly-replaced fprintf in liby-source, yyerror.c
authorJim Meyering <meyering@redhat.com>
Mon, 23 Jan 2012 10:47:46 +0000 (11:47 +0100)
committerAkim Demaille <demaille@gostai.com>
Wed, 25 Jan 2012 07:50:14 +0000 (08:50 +0100)
commitc373ab641b69a25bfd5f18b6e4243a7feada5aaf
tree92ef8b0b2143cd9e21395e61094366fc5f16dcca
parentb3597047475134a08eaf301d62c2e61b332690a9
build: avoid possibly-replaced fprintf in liby-source, yyerror.c

* lib/yyerror.c (yyerror): Use fputs and fputc rather than fprintf
with a mere "%s\n" format.  Always return 0 now, on the assumption
that the return value was never used anyway.
Don't include <config.h> after all.  This avoids a problem
reported by Thiru Ramakrishnan in
http://lists.gnu.org/archive/html/help-bison/2011-11/msg00000.html
* cfg.mk: Exempt lib/yyerror.c from the sc_require_config_h_first test.
* THANKS: Update.
(cherry picked from commit fb9eea88856d73a5f25295a52f6d4df7fabc565b)
THANKS
cfg.mk
lib/yyerror.c