diff options
author | Tomas Guisasola <tomas@luaforge.net> | 2004-11-03 11:01:11 +0000 |
---|---|---|
committer | Tomas Guisasola <tomas@luaforge.net> | 2004-11-03 11:01:11 +0000 |
commit | ebe7220f9c0806bc5d7d2a3b75d6cfd9421ec27b (patch) | |
tree | 05cb3fb1c2fe70de8142a2f5d1d283ebd04ea73a /lualdap/src/lualdap.c | |
parent | Adaptacao para o uso dos arquivos compat-5.1.[c,h]. (diff) | |
download | lualdap-ebe7220f9c0806bc5d7d2a3b75d6cfd9421ec27b.tar.xz lualdap-ebe7220f9c0806bc5d7d2a3b75d6cfd9421ec27b.zip |
Acrescimo das variaveis de informacao.
Diffstat (limited to '')
-rwxr-xr-x | lualdap/src/lualdap.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/lualdap/src/lualdap.c b/lualdap/src/lualdap.c index d9bb6f1..07ab24b 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.30 2004-10-15 15:28:09 tomas Exp $ +** $Id: lualdap.c,v 1.31 2004-11-03 11:01:11 tomas Exp $ */ #include <stdlib.h> @@ -943,6 +943,25 @@ static int lualdap_open_simple (lua_State *L) { /* +** Assumes the table is on top of the stack. +*/ +static void set_info (lua_State *L) { + lua_pushliteral (L, "_COPYRIGHT"); + lua_pushliteral (L, "Copyright (C) 2003-2004 Kepler Project"); + lua_settable (L, -3); + lua_pushliteral (L, "_DESCRIPTION"); + lua_pushliteral (L, "LuaLDAP is a simple interface from Lua to an LDAP client"); + lua_settable (L, -3); + lua_pushliteral (L, "_NAME"); + lua_pushliteral (L, "LuaLDAP"); + lua_settable (L, -3); + lua_pushliteral (L, "_VERSION"); + lua_pushliteral (L, "1.0b"); + lua_settable (L, -3); +} + + +/* ** Create ldap table and register the open method. */ int luaopen_lualdap (lua_State *L) { |