diff options
author | Zack Weinberg <zack@gcc.gnu.org> | 2000-01-17 21:45:29 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-01-17 21:45:29 +0000 |
commit | b51207a4d29a4ab03968c8a34e92391c69886c82 (patch) | |
tree | eb8d5bb67e01ca5f5c9b7fbe503fe8f52efafc50 /gcc/fixinc/fixfixes.c | |
parent | 051e6fd745109c9de4d707ccd949722904a74987 (diff) | |
download | gcc-b51207a4d29a4ab03968c8a34e92391c69886c82.zip gcc-b51207a4d29a4ab03968c8a34e92391c69886c82.tar.gz gcc-b51207a4d29a4ab03968c8a34e92391c69886c82.tar.bz2 |
fixlib.c: Add copyright notice.
* fixinc/fixlib.c: Add copyright notice.
(compile_re): New function.
* fixinc/fixlib.h: Prototype compile_re.
* fixinc/fixfixes.c, fixinc/fixtests.c, fixinc/fixincl.c:
Use compile_re to compile regular expressions.
* fixinc/fixincl.c (egrep_test): Don't bother asking regexec
where the pattern matched.
* fixinc/inclhack.def (sun_memcpy): Move to AAB_sun_memcpy,
use 'replace'.
(ultrix_ansi_compat): Likewise.
(interactv_add1): Rename to 'isc_omits_with_stdc', remove shell test,
add egrep test.
(interactv_add2, interactv_add3): Delete.
(x11_sprintf): Don't use filename glob.
* fixinc/fixincl.x, fixinc/inclhack.sh, fixinc/fixincl.sh:
Regenerate.
From-SVN: r31474
Diffstat (limited to 'gcc/fixinc/fixfixes.c')
-rw-r--r-- | gcc/fixinc/fixfixes.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/fixinc/fixfixes.c b/gcc/fixinc/fixfixes.c index e1e394d..b701c05 100644 --- a/gcc/fixinc/fixfixes.c +++ b/gcc/fixinc/fixfixes.c @@ -3,7 +3,7 @@ Test to see if a particular fix should be applied to a header file. - Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1997-1999, 2000 Free Software Foundation, Inc. = = = = = = = = = = = = = = = = = = = = = = = = = @@ -191,9 +191,8 @@ FIX_PROC_HEAD( else_endif_label_fix ) char* pz_next = (char*)NULL; regmatch_t match[2]; - re_set_syntax (RE_SYNTAX_EGREP); - (void)re_compile_pattern (label_pat, sizeof (label_pat)-1, - &label_re); + compile_re (label_pat, &label_re, 1, + "label pattern", "else_endif_label_fix"); for (;;) /* entire file */ { |