diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-22 15:14:06 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-22 15:14:06 -0300 |
commit | f9dd50cefc6c1c2c57f24d9985c1cc073d9d7300 (patch) | |
tree | 9654fc1c21c914f3f9c66b609303434d04504b05 | |
parent | dbde9f881768666363b3a4297645f3d490e5d1b6 (diff) | |
download | lua-f9dd50cefc6c1c2c57f24d9985c1cc073d9d7300.tar.gz lua-f9dd50cefc6c1c2c57f24d9985c1cc073d9d7300.tar.bz2 lua-f9dd50cefc6c1c2c57f24d9985c1cc073d9d7300.zip |
`read("*w")' should return nil at EOF
-rw-r--r-- | bugs | 10 | ||||
-rw-r--r-- | liolib.c | 4 |
2 files changed, 12 insertions, 2 deletions
@@ -198,3 +198,13 @@ Tue Aug 29 15:57:41 EST 2000 | |||
198 | >> gc tag method for nil could call line hook | 198 | >> gc tag method for nil could call line hook |
199 | (by ry; since ?) | 199 | (by ry; since ?) |
200 | 200 | ||
201 | |||
202 | |||
203 | ================================================================= | ||
204 | --- Version 4.0 Beta | ||
205 | |||
206 | ** liolib.c | ||
207 | Fri Sep 22 15:12:37 EST 2000 | ||
208 | >> `read("*w")' should return nil at EOF | ||
209 | (by roberto; since 4.0b) | ||
210 | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: liolib.c,v 1.83 2000/09/13 20:12:14 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 1.84 2000/09/14 14:09:31 roberto Exp roberto $ |
3 | ** Standard I/O (and system) library | 3 | ** Standard I/O (and system) library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -324,7 +324,7 @@ static int read_word (lua_State *L, FILE *f) { | |||
324 | } | 324 | } |
325 | ungetc(c, f); | 325 | ungetc(c, f); |
326 | luaL_pushresult(&b); /* close buffer */ | 326 | luaL_pushresult(&b); /* close buffer */ |
327 | return (lua_strlen(L, 1) > 0); | 327 | return (lua_strlen(L, -1) > 0); |
328 | } | 328 | } |
329 | 329 | ||
330 | 330 | ||