diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-22 14:15:18 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-22 14:15:18 -0300 |
commit | 52ee91dd73199e068d31d3ac138d933ddd4fb9b1 (patch) | |
tree | 9f9f1fdc16c8a3464fef14b9946482df688c2ea8 /liolib.c | |
parent | 191fd35f0a6cd47ea03417a663395acf5d0e9bf5 (diff) | |
download | lua-52ee91dd73199e068d31d3ac138d933ddd4fb9b1.tar.gz lua-52ee91dd73199e068d31d3ac138d933ddd4fb9b1.tar.bz2 lua-52ee91dd73199e068d31d3ac138d933ddd4fb9b1.zip |
better encapsulation of some types
Diffstat (limited to 'liolib.c')
-rw-r--r-- | liolib.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: liolib.c,v 1.105 2001/02/09 16:25:50 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 1.106 2001/02/09 19:52:54 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 | */ |
@@ -214,7 +214,7 @@ static int read_number (lua_State *L, FILE *f) { | |||
214 | 214 | ||
215 | 215 | ||
216 | static int read_word (lua_State *L, FILE *f) { | 216 | static int read_word (lua_State *L, FILE *f) { |
217 | int c; | 217 | l_charint c; |
218 | luaL_Buffer b; | 218 | luaL_Buffer b; |
219 | luaL_buffinit(L, &b); | 219 | luaL_buffinit(L, &b); |
220 | do { c = fgetc(f); } while (isspace(c)); /* skip spaces */ | 220 | do { c = fgetc(f); } while (isspace(c)); /* skip spaces */ |
@@ -273,7 +273,7 @@ static void read_file (lua_State *L, FILE *f) { | |||
273 | 273 | ||
274 | static int read_chars (lua_State *L, FILE *f, size_t n) { | 274 | static int read_chars (lua_State *L, FILE *f, size_t n) { |
275 | if (n == 0) { /* test eof? */ | 275 | if (n == 0) { /* test eof? */ |
276 | int c = fgetc(f); | 276 | l_charint c = fgetc(f); |
277 | ungetc(c, f); | 277 | ungetc(c, f); |
278 | lua_pushlstring(L, NULL, 0); | 278 | lua_pushlstring(L, NULL, 0); |
279 | return (c != EOF); | 279 | return (c != EOF); |