aboutsummaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-07-28 12:51:59 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-07-28 12:51:59 -0300
commitd447945685986f0b1a7bd5d7ed7746bf4ebd5914 (patch)
treef6439228bedf7b967cb7ff8dc26946732e96d8b5 /liolib.c
parent78f9635111ec647719bb1b1622b1cb6f47ef1be1 (diff)
downloadlua-d447945685986f0b1a7bd5d7ed7746bf4ebd5914.tar.gz
lua-d447945685986f0b1a7bd5d7ed7746bf4ebd5914.tar.bz2
lua-d447945685986f0b1a7bd5d7ed7746bf4ebd5914.zip
'module'/'luaL_register' and associates are deprecated
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 48687bf8..78ddb806 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 2.89 2010/07/02 11:38:13 roberto Exp roberto $ 2** $Id: liolib.c,v 2.90 2010/07/25 15:18:19 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*/
@@ -583,7 +583,7 @@ static void createmeta (lua_State *L) {
583 luaL_newmetatable(L, LUA_FILEHANDLE); /* create metatable for file handles */ 583 luaL_newmetatable(L, LUA_FILEHANDLE); /* create metatable for file handles */
584 lua_pushvalue(L, -1); /* push metatable */ 584 lua_pushvalue(L, -1); /* push metatable */
585 lua_setfield(L, -2, "__index"); /* metatable.__index = metatable */ 585 lua_setfield(L, -2, "__index"); /* metatable.__index = metatable */
586 luaL_register(L, NULL, flib); /* add file methods to new metatable */ 586 luaL_setfuncs(L, flib, 0); /* add file methods to new metatable */
587 lua_pop(L, 1); /* pop new metatable */ 587 lua_pop(L, 1); /* pop new metatable */
588} 588}
589 589