summaryrefslogtreecommitdiff
path: root/usr.bin/make/lowparse.h
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2000-06-23 16:40:51 +0000
committerMarc Espie <espie@cvs.openbsd.org>2000-06-23 16:40:51 +0000
commit24e587ef0180ad05ade69686b231161109c81738 (patch)
tree72e25aca62e3c6b95fe98880d2b7810ea5182aac /usr.bin/make/lowparse.h
parent43e184c8683ee4a828d2175e016b583f0b9dd036 (diff)
This is complementary to the previous patch.
There is no code change in this patch, we just move the remaining `lowparse' functions to the right file, and adjust the interface file accordingly. Reviewed by miod@
Diffstat (limited to 'usr.bin/make/lowparse.h')
-rw-r--r--usr.bin/make/lowparse.h21
1 files changed, 3 insertions, 18 deletions
diff --git a/usr.bin/make/lowparse.h b/usr.bin/make/lowparse.h
index 317de41774a..0ceb3939218 100644
--- a/usr.bin/make/lowparse.h
+++ b/usr.bin/make/lowparse.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: lowparse.h,v 1.1 2000/06/23 16:39:45 espie Exp $ */
+/* $OpenBSD: lowparse.h,v 1.2 2000/06/23 16:40:50 espie Exp $ */
/*
* Copyright (c) 1999 Marc Espie.
@@ -34,22 +34,7 @@ extern Boolean Parse_NextFile __P((void));
extern void LowParse_Init __P((void));
extern void LowParse_End __P((void));
#endif
+extern char *ParseReadLine __P((void));
+extern char *ParseSkipLine __P((int));
extern void Finish_Errors __P((void));
-extern void ParseUnreadc __P((char));
-
-/* Definitions for handling #include specifications */
-typedef struct IFile_ {
- char *fname; /* name of file */
- unsigned long lineno; /* line number */
- FILE *F; /* open stream */
- char *str; /* read from char area */
- char *ptr; /* where we are */
- char *end; /* don't overdo it */
-} IFile;
-
-IFile *current;
-
-int newline __P((void));
-#define ParseReadc() current->ptr < current->end ? *current->ptr++ : newline()
-
#endif