diff options
author | herbert <herbert@gondor.apana.org.au> | 2005-03-28 14:13:59 +1000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2005-09-26 18:33:05 +1000 |
commit | 4daf75cefd7ca514d0188bae3adc8f61a63940e5 (patch) | |
tree | 862bcb1ccf0f2808e593a8cda334e5d675db77f4 /src/input.h | |
parent | Removed some unnecessary inclusions of input.h. (diff) | |
download | dash-4daf75cefd7ca514d0188bae3adc8f61a63940e5.tar.gz dash-4daf75cefd7ca514d0188bae3adc8f61a63940e5.zip |
Generalise setinputfile for use in read_profile/readcmdfile.
Diffstat (limited to 'src/input.h')
-rw-r--r-- | src/input.h | 7 |
1 files changed, 6 insertions, 1 deletions
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); |