From 2c2b72205a56abe1d4a9be3633fc1529188b35bc Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 4 Feb 2007 07:19:10 +0000 Subject: [PATCH] * .cvsignore: Add javacomp.sh, javaexec.sh. Is this really the right spot for these files? * bootstrap.conf (gnulib_modules): Add c-strcase. * lib/.cvsignore: Add c-ctype.c c-ctype.h, c-strcasecomp.c, c-strncasecmp.c. * src/getargs.c: Include c-strcase.h. (language_argmatch): Use c_strcasecmp rather than strcasecmp, to avoid unspecified behavior. --- .cvsignore | 2 ++ ChangeLog | 11 +++++++++++ bootstrap.conf | 5 +++-- lib/.cvsignore | 5 +++++ src/getargs.c | 3 ++- 5 files changed, 23 insertions(+), 3 deletions(-) diff --git a/.cvsignore b/.cvsignore index 8b580db4..2703d7f7 100644 --- a/.cvsignore +++ b/.cvsignore @@ -20,6 +20,8 @@ config.status configure configure.lineno conftest* +javacomp.sh +javaexec.sh patches releases stamp-h* diff --git a/ChangeLog b/ChangeLog index 53fe22b0..3f9eda0b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2007-02-03 Paul Eggert + + * .cvsignore: Add javacomp.sh, javaexec.sh. Is this really + the right spot for these files? + * bootstrap.conf (gnulib_modules): Add c-strcase. + * lib/.cvsignore: Add c-ctype.c c-ctype.h, c-strcasecomp.c, + c-strncasecmp.c. + * src/getargs.c: Include c-strcase.h. + (language_argmatch): Use c_strcasecmp rather than strcasecmp, + to avoid unspecified behavior. + 2007-02-01 Joel E. Denny * doc/bison.texinfo (Decl Summary): Correct typo. diff --git a/bootstrap.conf b/bootstrap.conf index 478e71f9..1a0df2e2 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -1,6 +1,6 @@ # Bootstrap configuration. -# Copyright (C) 2006 Free Software Foundation, Inc. +# Copyright (C) 2006, 2007 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -20,7 +20,8 @@ # gnulib modules used by this package. gnulib_modules=' - argmatch config-h configmake dirname error extensions fopen-safer + argmatch config-h c-strcase configmake + dirname error extensions fopen-safer getopt gettext hash inttypes javacomp-script javaexec-script malloc mbswidth obstack quote quotearg stdbool stpcpy strerror strtoul strverscmp unistd unistd-safer unlocked-io verify xalloc xalloc-die diff --git a/lib/.cvsignore b/lib/.cvsignore index b6a33891..c2c86105 100644 --- a/lib/.cvsignore +++ b/lib/.cvsignore @@ -4,6 +4,11 @@ Makefile.in argmatch.c argmatch.h basename.c +c-ctype.c +c-ctype.h +c-strcase.h +c-strcasecmp.c +c-strncasecmp.c config.h config.hin configmake.h diff --git a/src/getargs.c b/src/getargs.c index 0938c698..4ff38fb1 100644 --- a/src/getargs.c +++ b/src/getargs.c @@ -25,6 +25,7 @@ #include "revision.h" #include +#include #include #include @@ -366,7 +367,7 @@ language_argmatch (char const *arg, int prio, location const *loc) { int i; for (i = 0; valid_languages[i].language[0]; i++) - if (strcasecmp (arg, valid_languages[i].language) == 0) + if (c_strcasecmp (arg, valid_languages[i].language) == 0) { language_prio = prio; language = &valid_languages[i]; -- 2.47.2