input.h (853B)
1 /* initialize the input stack */ 2 extern void initinput(void); 3 4 /* push an input onto the stack */ 5 extern void pushfd(int); 6 /* the Boolean argument affects line number reporting */ 7 extern void pushstring(char **, bool); 8 9 /* pop the stack */ 10 extern void popinput(void); 11 12 /* get / unget the next character */ 13 extern int gchar(void); 14 extern void ugchar(int); 15 16 /* $TERM or $TERMCAP has changed */ 17 extern void termchange(void); 18 19 /* parse a function from the environment */ 20 extern Node *parseline(char *); 21 22 /* main parsing loop; Boolean says whether to exec also */ 23 extern Node *doit(bool); 24 25 /* error recovery: skip to the next newline */ 26 extern void skiptonl(void); 27 28 /* prepare for next line of input */ 29 extern void nextline(void); 30 31 /* close all file descriptors on the stack */ 32 extern void closefds(void); 33 34 /* the last character read */ 35 extern int lastchar;