From 92efe73791d0998536042bfab5a1babc67d168c7 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Thu, 9 Sep 2010 01:06:43 +0200 Subject: Upgrading to IM 3.6.2, and doing some cleanup at the same time. --- im/src/lua5/imlua_process.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'im/src/lua5/imlua_process.c') diff --git a/im/src/lua5/imlua_process.c b/im/src/lua5/imlua_process.c index 978428b..b8c435c 100755 --- a/im/src/lua5/imlua_process.c +++ b/im/src/lua5/imlua_process.c @@ -2,7 +2,7 @@ * \brief IM Lua 5 Binding * * See Copyright Notice in im_lib.h - * $Id: imlua_process.c,v 1.11 2010/03/21 22:29:10 scuri Exp $ + * $Id: imlua_process.c,v 1.13 2010/06/10 20:17:40 scuri Exp $ */ #include @@ -1805,7 +1805,11 @@ static int imluaProcessMultipleStdDev (lua_State *L) luaL_argerror(L, 1, "must be a table"); lua_pushstring(L, "table"); +#if LUA_VERSION_NUM > 501 + lua_pushglobaltable(L); +#else lua_gettable(L, LUA_GLOBALSINDEX); +#endif lua_pushstring(L, "getn"); lua_gettable(L, -2); src_image_count = luaL_checkint(L, -1); @@ -3139,8 +3143,3 @@ int luaopen_imlua_process(lua_State *L) { return imlua_open_process(L); } - -int luaopen_imlua_process51(lua_State *L) -{ - return imlua_open_process(L); -} -- cgit v1.2.3