diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2016-10-23 00:24:25 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2016-10-23 00:24:25 +0000 |
commit | ab1717bb35d85041e0184f79daa1313a1306dc01 (patch) | |
tree | fa0739f76b49b902269f8f7c1e1c7c5ea30c0556 /tbl/te.c | |
parent | aa7798c94fa57f6c00fab4393c9fe91334864371 (diff) |
Notes
Diffstat (limited to 'tbl/te.c')
-rw-r--r-- | tbl/te.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -28,7 +28,7 @@ # include <stdlib.h> int -error(char *s) { +error(const char *s) { fprintf(stderr, "\n%s: line %d: %s\n", ifile, iline, s); fprintf(stderr, "%s quits\n", progname); return -1; @@ -43,8 +43,9 @@ char * gets1(char **bp, char **sp, size_t *zp) { char *s, *p = 0; -int c, n = 0; +int c; int nbl; +size_t n = 0; for (;;) { iline++; @@ -91,8 +92,8 @@ for (;;) return(p); } # define BACKMAX 500 -char backup[BACKMAX]; -char *backp = backup; +static char backup[BACKMAX]; +static char *backp = backup; void un1getc(int c) { |