aboutsummaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-07-17 13:25:13 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-07-17 13:25:13 -0300
commit79c8edb6c423b48270c1f61df6fd5a889ca5da0e (patch)
tree1b79c096472f5f799f5576561e831b0d992c8cd0 /liolib.c
parente5146fb01f1ccb40c2663e745feffbf642cbf862 (diff)
downloadlua-79c8edb6c423b48270c1f61df6fd5a889ca5da0e.tar.gz
lua-79c8edb6c423b48270c1f61df6fd5a889ca5da0e.tar.bz2
lua-79c8edb6c423b48270c1f61df6fd5a889ca5da0e.zip
new names for light userdata operations
Diffstat (limited to 'liolib.c')
-rw-r--r--liolib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/liolib.c b/liolib.c
index e67d61fd..2798e2bf 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 2.12 2002/06/26 16:37:13 roberto Exp roberto $ 2** $Id: liolib.c,v 2.13 2002/07/12 18:54:53 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*/
@@ -67,7 +67,7 @@ static FILE *tofile (lua_State *L, int findex) {
67 67
68 68
69static void newfile (lua_State *L, FILE *f) { 69static void newfile (lua_State *L, FILE *f) {
70 lua_newpointerbox(L, f); 70 lua_boxpointer(L, f);
71 lua_pushliteral(L, FILEHANDLE); 71 lua_pushliteral(L, FILEHANDLE);
72 lua_rawget(L, LUA_REGISTRYINDEX); 72 lua_rawget(L, LUA_REGISTRYINDEX);
73 lua_setmetatable(L, -2); 73 lua_setmetatable(L, -2);