diff options
Diffstat (limited to 'std.c')
| -rw-r--r-- | std.c | 36 |
1 files changed, 18 insertions, 18 deletions
| @@ -14,18 +14,18 @@ | |||
| 14 | #define MAX(a,b) (((a) > (b)) ? (a) : (b)) | 14 | #define MAX(a,b) (((a) > (b)) ? (a) : (b)) |
| 15 | #define MIN(a,b) (((a) < (b)) ? (a) : (b)) | 15 | #define MIN(a,b) (((a) < (b)) ? (a) : (b)) |
| 16 | 16 | ||
| 17 | void buffer(char c); | 17 | static void buffer(char c); |
| 18 | void cmd(const char *cmdstr, ...); | 18 | static void cmd(const char *cmdstr, ...); |
| 19 | int getch(); | 19 | static int getch(); |
| 20 | void getpty(void); | 20 | void getpty(void); |
| 21 | void movea(int x, int y); | 21 | static void movea(int x, int y); |
| 22 | void mover(int x, int y); | 22 | static void mover(int x, int y); |
| 23 | void parseesc(void); | 23 | static void parseesc(void); |
| 24 | void scroll(int l); | 24 | static void scroll(int l); |
| 25 | void shell(void); | 25 | static void shell(void); |
| 26 | void sigchld(int n); | 26 | static void sigchld(int n); |
| 27 | char unbuffer(void); | 27 | static char unbuffer(void); |
| 28 | void ungetch(int c); | 28 | static void ungetch(int c); |
| 29 | 29 | ||
| 30 | typedef struct { | 30 | typedef struct { |
| 31 | unsigned char data[BUFSIZ]; | 31 | unsigned char data[BUFSIZ]; |
| @@ -38,14 +38,14 @@ typedef struct { | |||
| 38 | int i, n; | 38 | int i, n; |
| 39 | } ReadBuffer; | 39 | } ReadBuffer; |
| 40 | 40 | ||
| 41 | int cols = 80, lines = 25; | 41 | static int cols = 80, lines = 25; |
| 42 | int cx = 0, cy = 0; | 42 | static int cx = 0, cy = 0; |
| 43 | int c; | 43 | static int c; |
| 44 | int ptm, pts; | 44 | int ptm, pts; |
| 45 | _Bool bold, digit, qmark; | 45 | static _Bool bold, digit, qmark; |
| 46 | pid_t pid; | 46 | static pid_t pid; |
| 47 | RingBuffer buf; | 47 | static RingBuffer buf; |
| 48 | ReadBuffer rbuf; | 48 | static ReadBuffer rbuf; |
| 49 | 49 | ||
| 50 | void | 50 | void |
| 51 | buffer(char c) { | 51 | buffer(char c) { |
