]> git.saurik.com Git - bison.git/commit
style: move argument handling of -W into the diagnostics module
authorAkim Demaille <akim@lrde.epita.fr>
Thu, 14 Feb 2013 13:35:24 +0000 (14:35 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Sat, 16 Feb 2013 06:45:07 +0000 (07:45 +0100)
commit12bc1c9e47a5c043e1d2bba599846732b93d062c
tree961c94d2ef2ab1e789edf8416cf7a164a9796be1
parent808e523db40335778897b413d446dff1d41d0e85
style: move argument handling of -W into the diagnostics module

This allows to reduce the number of public interfaces.

* src/getargs.c (--yacc): Use warning_argmatch instead of tweaking
directly warnings_flag (which will be private).
(warning_argmatch, warnings_argmatch): Move to...
* src/complain.h, src/complain.c: here.

* src/getargs.h, src/getargs.c (warnings_args, warnings_types): Move to...
* src/complain.c: here, now private.

* src/complain.h (severity, warnings_flag): Move to...
* src/complain.c: here, now private.
src/complain.c
src/complain.h
src/getargs.c
src/getargs.h