diff options
author | ben <ben@rana> | 2016-04-27 08:09:16 -0500 |
---|---|---|
committer | ben <ben@rana> | 2016-04-27 08:09:16 -0500 |
commit | b8986a889d7e3a445c0265c5cfb3b1db385db756 (patch) | |
tree | 229b8b184610b14e6c5c8f4faba8c1f04fdcc692 /sys/src/cmd/awk/main.c | |
parent | 85824350b5f65053053245d141aaf7d668089d28 (diff) |
use Beof for awk port
Diffstat (limited to 'sys/src/cmd/awk/main.c')
-rw-r--r-- | sys/src/cmd/awk/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/awk/main.c b/sys/src/cmd/awk/main.c index 9f7899ea0..3d1ae4e0d 100644 --- a/sys/src/cmd/awk/main.c +++ b/sys/src/cmd/awk/main.c @@ -177,14 +177,14 @@ int pgetc(void) /* get 1 character from awk program */ for (;;) { if (yyin == nil) { if (curpfile >= npfile) - return EOF; + return Beof; if (strcmp(pfile[curpfile], "-") == 0) yyin = &stdin; else if ((yyin = Bopen(pfile[curpfile], OREAD)) == nil) FATAL("can't open file %s", pfile[curpfile]); lineno = 1; } - if ((c = Bgetc(yyin)) != EOF) + if ((c = Bgetc(yyin)) != Beof) return c; if (yyin != &stdin) Bterm(yyin); |