diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-18 15:01:14 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-18 15:01:14 -0300 |
commit | 086d6b09ce8759b5f532b1163dc1208ff013dbab (patch) | |
tree | 1dab029c3d56ca3522480a349fa6efd4726578bf /liolib.c | |
parent | bfe29056186e6e25785e1233476a1b12481deab3 (diff) | |
download | lua-086d6b09ce8759b5f532b1163dc1208ff013dbab.tar.gz lua-086d6b09ce8759b5f532b1163dc1208ff013dbab.tar.bz2 lua-086d6b09ce8759b5f532b1163dc1208ff013dbab.zip |
avoid name colision with `close' function
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 2.57 2004/08/13 19:52:13 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 2.58 2005/02/18 12:40:02 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 | */ |
@@ -191,9 +191,9 @@ static int io_output (lua_State *L) { | |||
191 | static int io_readline (lua_State *L); | 191 | static int io_readline (lua_State *L); |
192 | 192 | ||
193 | 193 | ||
194 | static void aux_lines (lua_State *L, int idx, int close) { | 194 | static void aux_lines (lua_State *L, int idx, int toclose) { |
195 | lua_pushvalue(L, idx); | 195 | lua_pushvalue(L, idx); |
196 | lua_pushboolean(L, close); /* close/not close file when finished */ | 196 | lua_pushboolean(L, toclose); /* close/not close file when finished */ |
197 | lua_pushcclosure(L, io_readline, 2); | 197 | lua_pushcclosure(L, io_readline, 2); |
198 | } | 198 | } |
199 | 199 | ||