aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixinc/fixfixes.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@codesourcery.com>2003-07-08 20:42:19 +0000
committerZack Weinberg <zack@gcc.gnu.org>2003-07-08 20:42:19 +0000
commitab747408989da7b1b4c30a63e5b2f24fdbf63c12 (patch)
treedde90177f55808dcd653cf0c7bb274ebfc6d3c81 /gcc/fixinc/fixfixes.c
parentc094e9b948934171a90b20a0551558f5b92ddadf (diff)
downloadgcc-ab747408989da7b1b4c30a63e5b2f24fdbf63c12.zip
gcc-ab747408989da7b1b4c30a63e5b2f24fdbf63c12.tar.gz
gcc-ab747408989da7b1b4c30a63e5b2f24fdbf63c12.tar.bz2
Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
* Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies. * fixinc/Makefile.in: Remove all references to gnu-regex.[och]. * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp. * fixinc/fixlib.h: Include xregex.h not gnu-regex.h. * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline): Escape { and } characters which are not part of range expressions. * fixinc/fixincl.x: Regenerate. From-SVN: r69099
Diffstat (limited to 'gcc/fixinc/fixfixes.c')
-rw-r--r--gcc/fixinc/fixfixes.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/fixinc/fixfixes.c b/gcc/fixinc/fixfixes.c
index 4c558c5..b3c75ae 100644
--- a/gcc/fixinc/fixfixes.c
+++ b/gcc/fixinc/fixfixes.c
@@ -291,7 +291,7 @@ FIX_PROC_HEAD( format_fix )
* Replace every copy of the text we find
*/
compile_re (pz_pat, &re, 1, "format search-text", "format_fix" );
- while (regexec (&re, text, 10, rm, 0) == 0)
+ while (xregexec (&re, text, 10, rm, 0) == 0)
{
fwrite( text, rm[0].rm_so, 1, stdout );
format_write( pz_fmt, text, rm );
@@ -341,7 +341,7 @@ FIX_PROC_HEAD( char_macro_use_fix )
compile_re (pat, &re, 1, "macro pattern", "char_macro_use_fix");
for (p = text;
- regexec (&re, p, 1, rm, 0) == 0;
+ xregexec (&re, p, 1, rm, 0) == 0;
p = limit + 1)
{
/* p + rm[0].rm_eo is the first character of the macro replacement.
@@ -426,7 +426,7 @@ FIX_PROC_HEAD( char_macro_def_fix )
compile_re (pat, &re, 1, "macro pattern", "fix_char_macro_defines");
for (p = text;
- regexec (&re, p, 1, rm, 0) == 0;
+ xregexec (&re, p, 1, rm, 0) == 0;
p = limit + 1)
{
/* p + rm[0].rm_eo is the first character of the macro name.
@@ -516,7 +516,7 @@ FIX_PROC_HEAD( machine_name_fix )
scratch[1] = '_';
for (base = text;
- regexec (label_re, base, 2, match, 0) == 0;
+ xregexec (label_re, base, 2, match, 0) == 0;
base = limit)
{
base += match[0].rm_eo;
@@ -547,7 +547,7 @@ FIX_PROC_HEAD( machine_name_fix )
if (base == limit)
break;
- if (regexec (name_re, base, 1, match, REG_NOTBOL))
+ if (xregexec (name_re, base, 1, match, REG_NOTBOL))
goto done; /* No remaining match in this file */
/* Match; is it on the line? */
@@ -608,7 +608,7 @@ FIX_PROC_HEAD( wrap_fix )
* IF we do *not* match the no-wrap re, then we have a double negative.
* A double negative means YES.
*/
- if (regexec( &no_wrapping_re, text, 0, NULL, 0 ) != 0)
+ if (xregexec( &no_wrapping_re, text, 0, NULL, 0 ) != 0)
{
/*
* A single file can get wrapped more than once by different fixes.
@@ -690,7 +690,7 @@ FIX_PROC_HEAD( gnu_type_fix )
compile_re (pz_pat, &re, 1, "gnu type typedef", "gnu_type_fix");
- while (regexec (&re, text, GTYPE_SE_CT+1, rm, 0) == 0)
+ while (xregexec (&re, text, GTYPE_SE_CT+1, rm, 0) == 0)
{
text = emit_gnu_type (text, rm);
}