aboutsummaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-02-22 14:15:18 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-02-22 14:15:18 -0300
commit52ee91dd73199e068d31d3ac138d933ddd4fb9b1 (patch)
tree9f9f1fdc16c8a3464fef14b9946482df688c2ea8 /liolib.c
parent191fd35f0a6cd47ea03417a663395acf5d0e9bf5 (diff)
downloadlua-52ee91dd73199e068d31d3ac138d933ddd4fb9b1.tar.gz
lua-52ee91dd73199e068d31d3ac138d933ddd4fb9b1.tar.bz2
lua-52ee91dd73199e068d31d3ac138d933ddd4fb9b1.zip
better encapsulation of some types
Diffstat (limited to 'liolib.c')
-rw-r--r--liolib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/liolib.c b/liolib.c
index 68b0abec..f9aa2716 100644
--- a/liolib.c
+++ b/liolib.c
@@ -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
216static int read_word (lua_State *L, FILE *f) { 216static 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
274static int read_chars (lua_State *L, FILE *f, size_t n) { 274static 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);