diff options
Diffstat (limited to 'im/src/lua5/imlua_process.c')
-rwxr-xr-x | im/src/lua5/imlua_process.c | 11 |
1 files changed, 5 insertions, 6 deletions
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 <memory.h> @@ -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); -} |