summaryrefslogtreecommitdiffstats
path: root/gcc/fixinc/fixtests.c
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-01-17 21:45:29 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-01-17 21:45:29 +0000
commitd6d7d9997cc7c34a7c4138651ae5f13a07c50ccd (patch)
treeeb8d5bb67e01ca5f5c9b7fbe503fe8f52efafc50 /gcc/fixinc/fixtests.c
parentd0d8836b38afd451eb7fea9c510c00c556dad36a (diff)
downloadppe42-gcc-d6d7d9997cc7c34a7c4138651ae5f13a07c50ccd.tar.gz
ppe42-gcc-d6d7d9997cc7c34a7c4138651ae5f13a07c50ccd.zip
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31474 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixinc/fixtests.c')
-rw-r--r--gcc/fixinc/fixtests.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/fixinc/fixtests.c b/gcc/fixinc/fixtests.c
index 45eb4ef73e5..941b1ee1815 100644
--- a/gcc/fixinc/fixtests.c
+++ b/gcc/fixinc/fixtests.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.
= = = = = = = = = = = = = = = = = = = = = = = = =
@@ -164,9 +164,8 @@ TEST_FOR_FIX_PROC_HEAD( else_endif_label_test )
if (! compiled)
{
compiled++;
- 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_test");
}
for (;;) /* entire file */
OpenPOWER on IntegriCloud