summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/cond.h
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2005-03-30 15:18:58 +0000
committerharti <harti@FreeBSD.org>2005-03-30 15:18:58 +0000
commit495f1f48a81f03592552def7f2e50b2e699d8473 (patch)
tree76bd8e21601dfeeab94e4aab0aa1b9ce981e46a9 /usr.bin/make/cond.h
parentcf97e03db75b91cbf2215cb833a5d278f152fd6e (diff)
downloadFreeBSD-src-495f1f48a81f03592552def7f2e50b2e699d8473.zip
FreeBSD-src-495f1f48a81f03592552def7f2e50b2e699d8473.tar.gz
Make the structure for handling the input stack local to the parse
module. The only module accessing it (the current line number) was the condition module, so pass the current line number as a function argument. Centralize the pushing of new input sources into one function ParsePushInput() and rename the function handling the popping from ParseEOF() to ParsePopInput(). Make the entire thing a little bit clearer, by holding the current input source in the top element of the stack instead of using extra variables for this. Use a type-safe intrusive list for the input stack.
Diffstat (limited to 'usr.bin/make/cond.h')
-rw-r--r--usr.bin/make/cond.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/make/cond.h b/usr.bin/make/cond.h
index 1bae63a..ecd9a80 100644
--- a/usr.bin/make/cond.h
+++ b/usr.bin/make/cond.h
@@ -48,7 +48,7 @@
#define COND_SKIP 1 /* Skip the next lines */
#define COND_INVALID 2 /* Not a conditional statement */
-int Cond_Eval(char *);
+int Cond_Eval(char *, int);
void Cond_End(void);
#endif /* cond_h_6e96ad7c */
OpenPOWER on IntegriCloud