aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixinc/fixfixes.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@wolery.cumb.org>2000-05-11 19:30:47 +0000
committerZack Weinberg <zack@gcc.gnu.org>2000-05-11 19:30:47 +0000
commitb7976767161379223a40c191bb336c76f63670df (patch)
treeba0b180df5790a82f028162b34b1cae52fecf9b6 /gcc/fixinc/fixfixes.c
parentd80c348925cae62c30f61c774ad156ea92402acc (diff)
downloadgcc-b7976767161379223a40c191bb336c76f63670df.zip
gcc-b7976767161379223a40c191bb336c76f63670df.tar.gz
gcc-b7976767161379223a40c191bb336c76f63670df.tar.bz2
* fixinc/fixfixes.c, fixinc/fixtests.c: Update commentary.
From-SVN: r33858
Diffstat (limited to 'gcc/fixinc/fixfixes.c')
-rw-r--r--gcc/fixinc/fixfixes.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/gcc/fixinc/fixfixes.c b/gcc/fixinc/fixfixes.c
index 04cd328..1c67c76 100644
--- a/gcc/fixinc/fixfixes.c
+++ b/gcc/fixinc/fixfixes.c
@@ -9,8 +9,7 @@
NOTE TO DEVELOPERS
-The routines you write here must work closely with both the fixincl.c
-and the test_need.c program.
+The routines you write here must work closely with fixincl.c.
Here are the rules:
@@ -27,24 +26,19 @@ Here are the rules:
5. Write to stderr only in the event of a reportable error
In such an event, call "exit(1)".
-6. If "MAIN" is _not_ defined, then you have access to the fixDescList
- entry for the fix in question. This may be useful, for example,
- if there are pre-compiled selection expressions stored there.
+6. You have access to the fixDescList entry for the fix in question.
+ This may be useful, for example, if there are pre-compiled
+ selection expressions stored there.
For example, you may do this if you know that the first
test contains a useful regex. This is okay because, remember,
this code perforce works closely with the inclhack.def fixes!!
-
tFixDesc* pMyDesc = fixDescList + MY_FIX_NAME_FIXIDX;
tTestDesc* pTestList = pMyDesc->p_test_desc;
regexec (pTestList->p_test_regex, ...)
-
- If MAIN _is_ defined, then you will have to compile it on
- your own.
-
= = = = = = = = = = = = = = = = = = = = = = = = =
This file is part of GNU CC.