diff options
author | Zack Weinberg <zack@codesourcery.com> | 2003-07-08 20:42:19 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2003-07-08 20:42:19 +0000 |
commit | ab747408989da7b1b4c30a63e5b2f24fdbf63c12 (patch) | |
tree | dde90177f55808dcd653cf0c7bb274ebfc6d3c81 /gcc/fixinc/fixlib.c | |
parent | c094e9b948934171a90b20a0551558f5b92ddadf (diff) | |
download | gcc-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/fixlib.c')
-rw-r--r-- | gcc/fixinc/fixlib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/fixinc/fixlib.c b/gcc/fixinc/fixlib.c index af56f3e..49edda7 100644 --- a/gcc/fixinc/fixlib.c +++ b/gcc/fixinc/fixlib.c @@ -131,7 +131,7 @@ template[ \t]*<|\ if (!compiled) compile_re (cxxpat, &cxxre, 0, "contents check", "is_cxx_header"); - if (regexec (&cxxre, text, 0, 0, 0) == 0) + if (xregexec (&cxxre, text, 0, 0, 0) == 0) return BOOL_TRUE; } @@ -181,7 +181,7 @@ skip_quote( q, text ) Compile one regular expression pattern for later use. PAT contains the pattern, RE points to a regex_t structure (which should have been bzeroed). MATCH is 1 if we need to know where the regex - matched, 0 if not. If regcomp fails, prints an error message and + matched, 0 if not. If xregcomp fails, prints an error message and aborts; E1 and E2 are strings to shove into the error message. The patterns we search for are all egrep patterns. @@ -201,7 +201,7 @@ compile_re( pat, re, match, e1, e2 ) flags = (match ? REG_EXTENDED|REG_NEWLINE : REG_EXTENDED|REG_NEWLINE|REG_NOSUB); - err = regcomp (re, pat, flags); + err = xregcomp (re, pat, flags); if (err) { |