summaryrefslogtreecommitdiff
path: root/src/lua5/imlua_process.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua5/imlua_process.c')
-rw-r--r--src/lua5/imlua_process.c27
1 files changed, 8 insertions, 19 deletions
diff --git a/src/lua5/imlua_process.c b/src/lua5/imlua_process.c
index 03e4548..79239f0 100644
--- a/src/lua5/imlua_process.c
+++ b/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.12 2010/06/07 20:59:32 scuri Exp $
*/
#include <memory.h>
@@ -3130,23 +3130,17 @@ int imlua_open_process(lua_State *L)
{
luaL_register(L, "im", improcess_lib); /* leave "im" table at the top of the stack */
imlua_regconstants(L, im_process_constants);
-#ifdef TEC_BIGENDIAN
-#ifdef TEC_64
-#include "loh/im_process_be64.loh"
-#else
-#include "loh/im_process_be32.loh"
-#endif
-#else
-#ifdef TEC_64
-#ifdef WIN64
-#include "loh/im_process_le64w.loh"
+
+#ifdef IMLUA_USELOH
+#include "im_process.loh"
#else
-#include "loh/im_process_le64.loh"
-#endif
+#ifdef IMLUA_USELZH
+#include "im_process.lzh"
#else
-#include "loh/im_process.loh"
+ luaL_dofile(L, "im_process.lua");
#endif
#endif
+
imlua_open_kernel(L);
return 1;
}
@@ -3155,8 +3149,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);
-}