From 4daf75cefd7ca514d0188bae3adc8f61a63940e5 Mon Sep 17 00:00:00 2001 From: herbert Date: Mon, 28 Mar 2005 14:13:59 +1000 Subject: Generalise setinputfile for use in read_profile/readcmdfile. --- src/input.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/input.h') diff --git a/src/input.h b/src/input.h index cf18242..2b24c86 100644 --- a/src/input.h +++ b/src/input.h @@ -40,6 +40,11 @@ /* PEOF (the end of file marker) is defined in syntax.h */ +enum { + INPUT_PUSH_FILE = 1, + INPUT_NOFILE_OK = 2, +}; + /* * The input line number. Input.c just defines this variable, and saves * and restores it when files are pushed and popped. The user of this @@ -56,7 +61,7 @@ int preadbuffer(void); void pungetc(void); void pushstring(char *, void *); void popstring(void); -void setinputfile(const char *, int); +int setinputfile(const char *, int); void setinputfd(int, int); void setinputstring(char *); void popfile(void); -- cgit 1.4.1