From 52ee91dd73199e068d31d3ac138d933ddd4fb9b1 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 22 Feb 2001 14:15:18 -0300 Subject: better encapsulation of some types --- liolib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'liolib.c') diff --git a/liolib.c b/liolib.c index 68b0abec..f9aa2716 100644 --- a/liolib.c +++ b/liolib.c @@ -1,5 +1,5 @@ /* -** $Id: liolib.c,v 1.105 2001/02/09 16:25:50 roberto Exp roberto $ +** $Id: liolib.c,v 1.106 2001/02/09 19:52:54 roberto Exp roberto $ ** Standard I/O (and system) library ** See Copyright Notice in lua.h */ @@ -214,7 +214,7 @@ static int read_number (lua_State *L, FILE *f) { static int read_word (lua_State *L, FILE *f) { - int c; + l_charint c; luaL_Buffer b; luaL_buffinit(L, &b); do { c = fgetc(f); } while (isspace(c)); /* skip spaces */ @@ -273,7 +273,7 @@ static void read_file (lua_State *L, FILE *f) { static int read_chars (lua_State *L, FILE *f, size_t n) { if (n == 0) { /* test eof? */ - int c = fgetc(f); + l_charint c = fgetc(f); ungetc(c, f); lua_pushlstring(L, NULL, 0); return (c != EOF); -- cgit v1.2.3-55-g6feb