m4-patches
[Top][All Lists]
Advanced

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

Re: branch-1_4 allow C++ on Linux


From: Eric Blake
Subject: Re: branch-1_4 allow C++ on Linux
Date: Tue, 14 Nov 2006 19:39:47 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Eric Blake <ebb9 <at> byu.net> writes:

> Well, this isn't a complete patch, but it gets closer.
> 
> 2006-11-11  Eric Blake  <ebb9 <at> byu.net>
> 
>       One step closer to allowing C++ compilation - don't blindly
>       convert between char* and unsigned char*.

Missed one.

2006-11-14  Eric Blake  <address@hidden>

        * m4/resyntax.c (m4_regexp_syntax_encode): Avoid bug with signed
        char.

Index: m4/resyntax.c
===================================================================
RCS file: /sources/m4/m4/m4/resyntax.c,v
retrieving revision 1.2
diff -u -r1.2 resyntax.c
--- m4/resyntax.c       26 Sep 2006 13:19:26 -0000      1.2
+++ m4/resyntax.c       14 Nov 2006 19:38:45 -0000
@@ -93,8 +93,8 @@
     {
       if ((*p == ' ') || (*p == '-'))
        *p = '_';
-      else if (islower (*p))
-       *p = toupper (*p);
+      else if (islower (to_uchar (*p)))
+       *p = toupper (to_uchar (*p));
     }
 
   for (resyntax = m4_resyntax_map; resyntax->spec != NULL; ++resyntax)








reply via email to

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