bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: recent Gnulib changes break Bison


From: Paul Eggert
Subject: Re: recent Gnulib changes break Bison
Date: Sat, 03 Feb 2007 23:20:10 -0800
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

I installed the following to fix this:

2007-02-03  Paul Eggert  <address@hidden>

        * .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.

Index: .cvsignore
===================================================================
RCS file: /cvsroot/bison/bison/.cvsignore,v
retrieving revision 1.25
diff -u -p -r1.25 .cvsignore
--- .cvsignore  20 Sep 2006 20:22:24 -0000      1.25
+++ .cvsignore  4 Feb 2007 07:18:55 -0000
@@ -20,6 +20,8 @@ config.status
 configure
 configure.lineno
 conftest*
+javacomp.sh
+javaexec.sh
 patches
 releases
 stamp-h*
Index: bootstrap.conf
===================================================================
RCS file: /cvsroot/bison/bison/bootstrap.conf,v
retrieving revision 1.6
diff -u -p -r1.6 bootstrap.conf
--- bootstrap.conf      29 Jan 2007 10:54:42 -0000      1.6
+++ bootstrap.conf      4 Feb 2007 07:18:55 -0000
@@ -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
Index: lib/.cvsignore
===================================================================
RCS file: /cvsroot/bison/bison/lib/.cvsignore,v
retrieving revision 1.24
diff -u -p -r1.24 .cvsignore
--- lib/.cvsignore      26 Jan 2007 23:11:59 -0000      1.24
+++ lib/.cvsignore      4 Feb 2007 07:18:55 -0000
@@ -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
Index: src/getargs.c
===================================================================
RCS file: /cvsroot/bison/bison/src/getargs.c,v
retrieving revision 1.89
diff -u -p -r1.89 getargs.c
--- src/getargs.c       29 Jan 2007 10:54:42 -0000      1.89
+++ src/getargs.c       4 Feb 2007 07:18:55 -0000
@@ -25,6 +25,7 @@
 #include "revision.h"

 #include <argmatch.h>
+#include <c-strcase.h>
 #include <configmake.h>
 #include <error.h>

@@ -366,7 +367,7 @@ language_argmatch (char const *arg, int 
     {
       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];




reply via email to

[Prev in Thread] Current Thread [Next in Thread]