aboutsummaryrefslogtreecommitdiff
path: root/std.c
diff options
context:
space:
mode:
authorMatthias-Christian Ott <ott@enolink.de>2008-06-14 23:29:11 +0200
committerMatthias-Christian Ott <ott@enolink.de>2008-06-14 23:29:11 +0200
commitcf147ae9da0221123596b749d4742d06f0ea643b (patch)
tree390338c8c60da380cbb0087a0bf2d9caea713c5e /std.c
parentf9a0524f9430147a3e4a0d200cb3bbd54d1448a4 (diff)
downloadst-cf147ae9da0221123596b749d4742d06f0ea643b.tar.gz
st-cf147ae9da0221123596b749d4742d06f0ea643b.zip
make local functions and variables static
Diffstat (limited to 'std.c')
-rw-r--r--std.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/std.c b/std.c
index fbabaa4..5e19245 100644
--- a/std.c
+++ b/std.c
@@ -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
17void buffer(char c); 17static void buffer(char c);
18void cmd(const char *cmdstr, ...); 18static void cmd(const char *cmdstr, ...);
19int getch(); 19static int getch();
20void getpty(void); 20void getpty(void);
21void movea(int x, int y); 21static void movea(int x, int y);
22void mover(int x, int y); 22static void mover(int x, int y);
23void parseesc(void); 23static void parseesc(void);
24void scroll(int l); 24static void scroll(int l);
25void shell(void); 25static void shell(void);
26void sigchld(int n); 26static void sigchld(int n);
27char unbuffer(void); 27static char unbuffer(void);
28void ungetch(int c); 28static void ungetch(int c);
29 29
30typedef struct { 30typedef 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
41int cols = 80, lines = 25; 41static int cols = 80, lines = 25;
42int cx = 0, cy = 0; 42static int cx = 0, cy = 0;
43int c; 43static int c;
44int ptm, pts; 44int ptm, pts;
45_Bool bold, digit, qmark; 45static _Bool bold, digit, qmark;
46pid_t pid; 46static pid_t pid;
47RingBuffer buf; 47static RingBuffer buf;
48ReadBuffer rbuf; 48static ReadBuffer rbuf;
49 49
50void 50void
51buffer(char c) { 51buffer(char c) {