summaryrefslogtreecommitdiff
path: root/im/src/lua5/imlua_process.c
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2010-09-09 01:06:43 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2010-09-09 01:06:47 +0200
commit92efe73791d0998536042bfab5a1babc67d168c7 (patch)
tree6c5f7e9d9a8e5b439f50821f498ae6f6df776f36 /im/src/lua5/imlua_process.c
parentf23d91bd3ba87c8fe6691af9ebd1a5210e2fbaec (diff)
Upgrading to IM 3.6.2, and doing some cleanup at the same time.
Diffstat (limited to 'im/src/lua5/imlua_process.c')
-rwxr-xr-xim/src/lua5/imlua_process.c11
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);
-}