This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Fwd: patch for GNU sed version 4.0b]


The attached patch fixes C99isms in regex.

Paolo
--- Begin Message ---
sed 4.0b doesn't compile on my system unless I apply
the patches below. I'm using gcc 2.95.3.

--- sed-4.0b/lib/regcomp.c      Thu Dec 18 08:53:13 2003
+++ sed-4.0b.fixed/lib/regcomp.c        Thu Dec 18 16:07:49 2003
@@ -3047,6 +3047,7 @@
   if (token->type == OP_CLOSE_BRACKET)
     token->type = CHARACTER;

+  {
   int first_round = 1;
   while (1)
     {
@@ -3184,6 +3185,7 @@
        }
       if (token->type == OP_CLOSE_BRACKET)
        break;
+    }
     }

   re_string_skip_bytes (regexp, token_len); /* Skip a token.  */



--- sed-4.0b/testsuite/tst-rxspencer.c  Mon Dec 15 06:17:40 2003
+++ sed-4.0b.fixed/testsuite/tst-rxspencer.c    Thu Dec 18 16:11:30 2003
@@ -240,9 +240,11 @@
          return 1;
        }

+         {
       char buf[500];
       regerror (n, &re, buf, sizeof (buf));
       printf ("%s regcomp failed: %s\n", fail, buf);
+         }
       return 1;
     }



=====
I code, therefore I am

__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/



--- End Message ---

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]