summaryrefslogtreecommitdiff
path: root/im/src/lua5/imlua_fftw.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_fftw.c
parentf23d91bd3ba87c8fe6691af9ebd1a5210e2fbaec (diff)
Upgrading to IM 3.6.2, and doing some cleanup at the same time.
Diffstat (limited to 'im/src/lua5/imlua_fftw.c')
-rwxr-xr-xim/src/lua5/imlua_fftw.c31
1 files changed, 10 insertions, 21 deletions
diff --git a/im/src/lua5/imlua_fftw.c b/im/src/lua5/imlua_fftw.c
index c8ad3df..f25f9c3 100755
--- a/im/src/lua5/imlua_fftw.c
+++ b/im/src/lua5/imlua_fftw.c
@@ -2,7 +2,7 @@
* \brief IM Lua 5 Binding
*
* See Copyright Notice in im_lib.h
- * $Id: imlua_fftw.c,v 1.2 2008/11/26 17:25:51 scuri Exp $
+ * $Id: imlua_fftw.c,v 1.3 2010/06/07 20:59:32 scuri Exp $
*/
#include <memory.h>
@@ -131,23 +131,17 @@ static const luaL_reg imfftw_lib[] = {
int imlua_open_fftw (lua_State *L)
{
luaL_register(L, "im", imfftw_lib); /* leave "im" table at the top of the stack */
-#ifdef TEC_BIGENDIAN
-#ifdef TEC_64
-#include "loh/im_fftw_be64.loh"
-#else
-#include "loh/im_fftw_be32.loh"
-#endif
-#else
-#ifdef TEC_64
-#ifdef WIN64
-#include "loh/im_fftw_le64w.loh"
+
+#ifdef IMLUA_USELOH
+#include "im_fftw.loh"
#else
-#include "loh/im_fftw_le64.loh"
-#endif
+#ifdef IMLUA_USELZH
+#include "im_fftw.lzh"
#else
-#include "loh/im_fftw.loh"
-#endif
-#endif
+ luaL_dofile(L, "im_fftw.lua");
+#endif
+#endif
+
return 1;
}
@@ -155,8 +149,3 @@ int luaopen_imlua_fftw(lua_State *L)
{
return imlua_open_fftw(L);
}
-
-int luaopen_imlua_fftw51(lua_State *L)
-{
- return imlua_open_fftw(L);
-}