diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-09 17:52:54 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-09 17:52:54 -0200 |
commit | dc17a9cc24a52a298dbfb7ffe8aaad393f7c1bf9 (patch) | |
tree | e8347f3d1245488d7c36ee33e76d84ab3dfca7e6 | |
parent | 81e63f75c0bce2b94c38ffe58781cd38997c8650 (diff) | |
download | lua-dc17a9cc24a52a298dbfb7ffe8aaad393f7c1bf9.tar.gz lua-dc17a9cc24a52a298dbfb7ffe8aaad393f7c1bf9.tar.bz2 lua-dc17a9cc24a52a298dbfb7ffe8aaad393f7c1bf9.zip |
new semantics for pushuserdata
-rw-r--r-- | liolib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: liolib.c,v 1.104 2001/02/06 16:01:29 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 1.105 2001/02/09 16:25:50 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 | */ |
@@ -130,7 +130,7 @@ static int closefile (lua_State *L, FILE *f) { | |||
130 | if (f == stdin || f == stdout || f == stderr) | 130 | if (f == stdin || f == stdout || f == stderr) |
131 | return 1; | 131 | return 1; |
132 | else { | 132 | else { |
133 | pushfile(L, f); | 133 | lua_pushuserdata(L, f); |
134 | lua_settag(L, lua_type2tag(L, "ClosedFileHandle")); | 134 | lua_settag(L, lua_type2tag(L, "ClosedFileHandle")); |
135 | return (CLOSEFILE(L, f) == 0); | 135 | return (CLOSEFILE(L, f) == 0); |
136 | } | 136 | } |