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