aboutsummaryrefslogtreecommitdiffstats
path: root/lualdap
diff options
context:
space:
mode:
authorTomas Guisasola <tomas@luaforge.net>2006-07-24 01:36:51 +0000
committerTomas Guisasola <tomas@luaforge.net>2006-07-24 01:36:51 +0000
commita3d83e7bf634aa58e8218706fb1fee8ccb370e5a (patch)
treec5ea3c87222f9aecd90bc3fde6ab5f73e91d8fa0 /lualdap
parentReference to LuaBinaries 5.0.2 (diff)
downloadlualdap-a3d83e7bf634aa58e8218706fb1fee8ccb370e5a.tar.xz
lualdap-a3d83e7bf634aa58e8218706fb1fee8ccb370e5a.zip
Updating to run on both Lua 5.0 and 5.1
Diffstat (limited to 'lualdap')
-rwxr-xr-xlualdap/src/lualdap.c7
-rwxr-xr-xlualdap/tests/test.lua4
2 files changed, 6 insertions, 5 deletions
diff --git a/lualdap/src/lualdap.c b/lualdap/src/lualdap.c
index 703fb1c..d4ee773 100755
--- a/lualdap/src/lualdap.c
+++ b/lualdap/src/lualdap.c
@@ -1,7 +1,7 @@
/*
** LuaLDAP
** See Copyright Notice in license.html
-** $Id: lualdap.c,v 1.44 2006-04-04 20:11:51 carregal Exp $
+** $Id: lualdap.c,v 1.45 2006-07-24 01:36:51 tomas Exp $
*/
#include <stdlib.h>
@@ -16,8 +16,9 @@
#include "lua.h"
#include "lauxlib.h"
+#if ! defined (LUA_VERSION_NUM) || LUA_VERSION_NUM < 501
#include "compat-5.1.h"
-
+#endif
#define LUALDAP_PREFIX "LuaLDAP: "
#define LUALDAP_TABLENAME "lualdap"
@@ -958,7 +959,7 @@ static void set_info (lua_State *L) {
lua_pushliteral (L, "LuaLDAP is a simple interface from Lua to an LDAP client");
lua_settable (L, -3);
lua_pushliteral (L, "_VERSION");
- lua_pushliteral (L, "LuaLDAP 1.0.1");
+ lua_pushliteral (L, "LuaLDAP 1.0.2");
lua_settable (L, -3);
}
diff --git a/lualdap/tests/test.lua b/lualdap/tests/test.lua
index 299ed8e..2dce95b 100755
--- a/lualdap/tests/test.lua
+++ b/lualdap/tests/test.lua
@@ -1,4 +1,4 @@
-#!/usr/local/bin/lua
+#!/usr/local/bin/lua5.1
---------------------------------------------------------------------
-- LuaLDAP test file.
-- This test will create a copy of an existing entry on the
@@ -6,7 +6,7 @@
-- renamed and deleted at the end.
--
-- See Copyright Notice in license.html
--- $Id: test.lua,v 1.14 2005-06-08 17:22:46 tomas Exp $
+-- $Id: test.lua,v 1.15 2006-07-24 01:36:51 tomas Exp $
---------------------------------------------------------------------
--