]> git.saurik.com Git - bison.git/commit
warnings: factoring: complaints
authorVictor Santet <victor.santet@epita.fr>
Thu, 28 Jun 2012 14:44:21 +0000 (16:44 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Thu, 28 Jun 2012 15:18:45 +0000 (17:18 +0200)
commit6fb8b25619267a0a04a776ca2f1e50e51966d332
tree4873b9b0a637f767315a1d75e49b4226bae7a633
parentd0f11c1b628c0bd3d11614a796da30cfd7dce927
warnings: factoring: complaints

* src/complain.c (error_message): Accept warning categories (an integer) as
argument.
Location is a 'const location *' instead of 'location *'.
(ERROR_MESSAGE): Delete it.
* src/complain.c, src/complain.h (complains): New function.
(complain, complain_at, complain_at_indent): Generic functions for
complaints. Call 'complains'.
(warn_at, warn_at_indent, warn, yacc_at, midrule_value_at)
(fatal_at, fatal): Delete them. Adjust dependencies.
* src/complain.h (enum warnings): New fields 'complaint' and 'fatal'.
* bootstrap.conf (XGETTEXT_OPTIONS): Adjust.
17 files changed:
bootstrap.conf
src/complain.c
src/complain.h
src/conflicts.c
src/files.c
src/getargs.c
src/gram.c
src/location.c
src/muscle-tab.c
src/parse-gram.y
src/reader.c
src/reduce.c
src/scan-code.l
src/scan-gram.l
src/scan-skel.l
src/symlist.c
src/symtab.c