--- Begin Message ---
- From: Alex Davis <alex14641 at yahoo dot com>
- To: bonzini at gnu dot org
- Date: Thu, 18 Dec 2003 17:54:54 -0800 (PST)
- Subject: patch for GNU sed version 4.0b
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 ---