diff options
Diffstat (limited to 'src/liolib.c')
-rw-r--r-- | src/liolib.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/liolib.c b/src/liolib.c index 854ba3ba..1dba7eff 100644 --- a/src/liolib.c +++ b/src/liolib.c @@ -1,5 +1,5 @@ /* -** $Id: liolib.c,v 2.58 2005/02/18 12:40:02 roberto Exp $ +** $Id: liolib.c,v 2.60 2005/05/16 21:19:00 roberto Exp $ ** Standard I/O (and system) library ** See Copyright Notice in lua.h */ @@ -191,9 +191,9 @@ static int io_output (lua_State *L) { static int io_readline (lua_State *L); -static void aux_lines (lua_State *L, int idx, int close) { +static void aux_lines (lua_State *L, int idx, int toclose) { lua_pushvalue(L, idx); - lua_pushboolean(L, close); /* close/not close file when finished */ + lua_pushboolean(L, toclose); /* close/not close file when finished */ lua_pushcclosure(L, io_readline, 2); } @@ -319,8 +319,6 @@ static int g_read (lua_State *L, FILE *f, int first) { read_chars(L, f, ~((size_t)0)); /* read MAX_SIZE_T chars */ success = 1; /* always success */ break; - case 'w': /* word */ - return luaL_error(L, "obsolete option `*w' to `read'"); default: return luaL_argerror(L, n, "invalid format"); } |