diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-03-05 10:15:50 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-03-05 10:15:50 -0300 |
commit | e907c711c04b3e09164e7654623e1f48a689f5cc (patch) | |
tree | 89d225e24eb735435f603cce9c301529d78fdf63 /lzio.c | |
parent | 5a8bb00df443dfdb5708689f32c64e90f2557bf8 (diff) | |
download | lua-e907c711c04b3e09164e7654623e1f48a689f5cc.tar.gz lua-e907c711c04b3e09164e7654623e1f48a689f5cc.tar.bz2 lua-e907c711c04b3e09164e7654623e1f48a689f5cc.zip |
"feof" may be a macro.
Diffstat (limited to 'lzio.c')
-rw-r--r-- | lzio.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lzio.c,v 1.5 1999/02/25 19:13:56 roberto Exp roberto $ | 2 | ** $Id: lzio.c,v 1.6 1999/03/04 14:49:18 roberto Exp roberto $ |
3 | ** a generic input stream interface | 3 | ** a generic input stream interface |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -43,7 +43,7 @@ ZIO* zsopen (ZIO* z, char* s, char *name) | |||
43 | 43 | ||
44 | static int zffilbuf (ZIO* z) { | 44 | static int zffilbuf (ZIO* z) { |
45 | int n; | 45 | int n; |
46 | if (feof(z->u)) return EOZ; | 46 | if (feof((FILE *)z->u)) return EOZ; |
47 | n=fread(z->buffer,1,ZBSIZE,z->u); | 47 | n=fread(z->buffer,1,ZBSIZE,z->u); |
48 | if (n==0) return EOZ; | 48 | if (n==0) return EOZ; |
49 | z->n=n-1; | 49 | z->n=n-1; |