summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitezslav Crhonek <vcrhonek@redhat.com>2014-02-05 14:58:28 +0100
committerEric Blake <eblake@redhat.com>2014-02-05 13:20:38 -0700
commit12d9ca5eef1e839aa61f7e821fa4b2bee4c63d23 (patch)
tree9a3ba107e8d4f897e2cef69feb87ac9223604871
parentcf5cbd26d6134540c66e7a68f4de36471fe9c995 (diff)
downloadm4-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--ChangeLog6
-rw-r--r--THANKS1
-rw-r--r--src/m4.c2
3 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a6399177..9b865cfb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/THANKS b/THANKS
index eaefbbab..5e4b3ee9 100644
--- a/THANKS
+++ b/THANKS
@@ -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
diff --git a/src/m4.c b/src/m4.c
index db772881..9907f0b7 100644
--- a/src/m4.c
+++ b/src/m4.c
@@ -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},