diff options
author | Vitezslav Crhonek <vcrhonek@redhat.com> | 2014-02-05 14:58:28 +0100 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2014-02-05 13:20:38 -0700 |
commit | 12d9ca5eef1e839aa61f7e821fa4b2bee4c63d23 (patch) | |
tree | 9a3ba107e8d4f897e2cef69feb87ac9223604871 | |
parent | cf5cbd26d6134540c66e7a68f4de36471fe9c995 (diff) | |
download | m4-12d9ca5eef1e839aa61f7e821fa4b2bee4c63d23.tar.gz |
main: diagnose unsupported --word-regexp
The long option for -W (--word-regexp) was accepted without
ENABLE_CHANGEWORD defined.
* src/m4.c (long_options): Don't allow long option if short option
is rejected.
* THANKS: Add attribution.
Signed-off-by: Eric Blake <eblake@redhat.com>
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | THANKS | 1 | ||||
-rw-r--r-- | src/m4.c | 2 |
3 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2014-02-05 Vitezslav Crhonek <vcrhonek@redhat.com> (tiny change) + + main: diagnose unsupported --word-regexp + * src/m4.c (long_options): Don't allow long option if short option + is rejected. + 2014-01-01 Eric Blake <eblake@redhat.com> maint: bump copyright year @@ -129,6 +129,7 @@ Tom Tromey tromey@cns.caltech.edu Ulrich Drepper drepper@gnu.org Vern Paxson vern@ee.lbl.gov Vincent Lonngren Vincent.lonngren.759@student.lu.se +Vitezslav Crhonek vcrhonek@redhat.com Vivek P. Singhal singhal@cs.utexas.edu Walter Wong wcw+@cmu.edu @@ -307,7 +307,9 @@ static const struct option long_options[] = {"trace", required_argument, NULL, 't'}, {"traditional", no_argument, NULL, 'G'}, {"undefine", required_argument, NULL, 'U'}, +#ifdef ENABLE_CHANGEWORD {"word-regexp", required_argument, NULL, 'W'}, +#endif {"debugfile", optional_argument, NULL, DEBUGFILE_OPTION}, {"diversions", required_argument, NULL, DIVERSIONS_OPTION}, |