From 2575f4cbf0124aa21568f76a243980c679587759 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 27 Nov 2009 01:33:55 +0000 Subject: event_callback: Fix stack slot leak --- src/event_callback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/event_callback.c b/src/event_callback.c index 76a7789..b1cdd02 100644 --- a/src/event_callback.c +++ b/src/event_callback.c @@ -43,7 +43,7 @@ void luaevent_callback(int fd, short event, void* p) { load_timeval(newTimeout, &cb->timeout); } } - lua_pop(L, 1); + lua_pop(L, 2); if(ret == -1) { freeCallbackArgs(cb, L); } else { -- cgit v1.2.3 From 7eb84245607020b20fcf83404a7e4e93fc0a3f89 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 6 Dec 2009 01:10:59 +0000 Subject: Add base:loopexit() method --- src/luaevent.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/luaevent.c b/src/luaevent.c index c9b5430..71188a6 100644 --- a/src/luaevent.c +++ b/src/luaevent.c @@ -89,9 +89,18 @@ static int luaevent_loop(lua_State* L) { return 1; } +static int luaevent_loopexit(lua_State*L) { + le_base *base = event_base_get(L, 1); + struct timeval tv = { 0, 10 }; + int ret = event_base_loopexit(base->base, &tv); + lua_pushinteger(L, ret); + return 1; +} + static luaL_Reg base_funcs[] = { { "addevent", luaevent_addevent }, { "loop", luaevent_loop }, + { "loopexit", luaevent_loopexit }, { NULL, NULL } }; -- cgit v1.2.3 From b797f511efc3843cf32d62f907f1cfa08fca3828 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 7 Dec 2009 21:36:31 +0000 Subject: base:loopexit(): Support for specifying the timeout before exit --- src/luaevent.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/luaevent.c b/src/luaevent.c index 71188a6..550a386 100644 --- a/src/luaevent.c +++ b/src/luaevent.c @@ -91,7 +91,9 @@ static int luaevent_loop(lua_State* L) { static int luaevent_loopexit(lua_State*L) { le_base *base = event_base_get(L, 1); - struct timeval tv = { 0, 10 }; + struct timeval tv = { 0, 0 }; + if(lua_gettop(L) >= 2) /* Optional timeout before exiting the loop */ + load_timeval(luaL_checknumber(L, 2), &tv); int ret = event_base_loopexit(base->base, &tv); lua_pushinteger(L, ret); return 1; -- cgit v1.2.3 From bfd0058b760fb75ae466aa9049e9428645363a65 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 7 Dec 2009 21:44:00 +0000 Subject: Add base:method() to return string identifying the current libevent backend in use --- src/luaevent.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/luaevent.c b/src/luaevent.c index 550a386..0c5c37b 100644 --- a/src/luaevent.c +++ b/src/luaevent.c @@ -99,10 +99,17 @@ static int luaevent_loopexit(lua_State*L) { return 1; } +static int luaevent_method(lua_State* L) { + le_base *base = event_base_get(L, 1); + lua_pushstring(L, event_base_get_method(base->base)); + return 1; +} + static luaL_Reg base_funcs[] = { { "addevent", luaevent_addevent }, { "loop", luaevent_loop }, { "loopexit", luaevent_loopexit }, + { "method", luaevent_method }, { NULL, NULL } }; -- cgit v1.2.3 From 2506ebf1e52bdd83007b0463f0a02ea1d6062be8 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 7 Dec 2009 22:40:03 +0000 Subject: Add core.libevent_version() function to get version of libevent in use --- src/luaevent.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/luaevent.c b/src/luaevent.c index 0c5c37b..8a682df 100644 --- a/src/luaevent.c +++ b/src/luaevent.c @@ -29,6 +29,11 @@ int luaevent_newbase(lua_State* L) { return 1; } +int luaevent_libevent_version(lua_State* L) { + lua_pushstring(L, event_get_version()); + return 1; +} + static int luaevent_base_gc(lua_State* L) { le_base *base = event_base_get(L, 1); if(base->base) { @@ -115,6 +120,7 @@ static luaL_Reg base_funcs[] = { static luaL_Reg funcs[] = { { "new", luaevent_newbase }, + { "libevent_version", luaevent_libevent_version }, { NULL, NULL } }; -- cgit v1.2.3 From d6d6e4d9daa4b43511fa287af616be259857429e Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 7 Dec 2009 22:45:12 +0000 Subject: Add _NAME and _VERSION fields to module --- lua/luaevent.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/luaevent.lua b/lua/luaevent.lua index a05de29..ffd54f5 100644 --- a/lua/luaevent.lua +++ b/lua/luaevent.lua @@ -5,6 +5,9 @@ module("luaevent", package.seeall) require("luaevent.core") +_NAME = "luaevent"; +_VERSION = "0.3 dev"; + local EV_READ = luaevent.core.EV_READ local EV_WRITE = luaevent.core.EV_WRITE local base = luaevent.core.new() -- cgit v1.2.3 From 890f155ec2f62c0512de28c16c86c2660b129e08 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 7 Dec 2009 22:48:43 +0000 Subject: Fix potential stack slot leak when error occurs --- src/buffer_event.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/buffer_event.c b/src/buffer_event.c index 4e20353..0b956cf 100644 --- a/src/buffer_event.c +++ b/src/buffer_event.c @@ -49,7 +49,12 @@ static void handle_callback(le_bufferevent* le_ev, short what, int callbackIndex /* func, bufferevent */ lua_pushinteger(L, what); /* What to do w/ errors...? */ - lua_pcall(L, 2, 0, 0); + if(!lua_pcall(L, 2, 0, 0)) + { + /* FIXME: Perhaps luaevent users should be + * able to set an error handler? */ + lua_pop(L, 1); /* Pop error message */ + } } static void buffer_event_readcb(struct bufferevent *ev, void *ptr) { -- cgit v1.2.3 From 5435cbb46fc3456a32fe7527c42e6c7419ceccc1 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 9 Dec 2009 00:34:39 +0000 Subject: base:addevent(): Accept integer as fd parameter --- src/luaevent.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/luaevent.c b/src/luaevent.c index 8a682df..a8d5f7d 100644 --- a/src/luaevent.c +++ b/src/luaevent.c @@ -45,14 +45,18 @@ static int luaevent_base_gc(lua_State* L) { int getSocketFd(lua_State* L, int idx) { int fd; - luaL_checktype(L, idx, LUA_TUSERDATA); - lua_getfield(L, idx, "getfd"); - if(lua_isnil(L, -1)) - return luaL_error(L, "Socket type missing 'getfd' method"); - lua_pushvalue(L, idx); - lua_call(L, 1, 1); - fd = lua_tointeger(L, -1); - lua_pop(L, 1); + if(lua_isnumber(L, idx)) { + fd = lua_tonumber(L, idx); + } else { + luaL_checktype(L, idx, LUA_TUSERDATA); + lua_getfield(L, idx, "getfd"); + if(lua_isnil(L, -1)) + return luaL_error(L, "Socket type missing 'getfd' method"); + lua_pushvalue(L, idx); + lua_call(L, 1, 1); + fd = lua_tointeger(L, -1); + lua_pop(L, 1); + } return fd; } -- cgit v1.2.3 From 555962f4618026d8da25b729994f22d0a8fcac23 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 17 Jan 2010 01:07:14 +0000 Subject: Makefile: Added basic Makefile for standard make --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a371ad0 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +LUA_INC_DIR=/usr/include/lua5.1 +LUA_LIB_DIR=/usr/lib + +INSTALL_DIR_LUA=/usr/share/lua/5.1 +INSTALL_DIR_BIN=/usr/lib/lua/5.1 + + +all: + gcc -g -O0 -c -Wall -fpic -Iinclude -I$(LUA_INC_DIR) src/*.c + gcc -g -shared -fpic -o core.so *.o -L$(LUA_LIB_DIR) -llua5.1 -levent + +install: + install -d $(INSTALL_DIR_LUA) + install lua/luaevent.lua $(INSTALL_DIR_LUA)/ + install -d $(INSTALL_DIR_BIN)/luaevent + install core.so $(INSTALL_DIR_BIN)/luaevent/core.so + +clean: + rm *.so + rm *.o + -- cgit v1.2.3 From 6da15fb55e02f36b8b38f659466fa0f213392179 Mon Sep 17 00:00:00 2001 From: Dwayne Bent Date: Mon, 18 Jan 2010 13:16:06 -0500 Subject: Makefile: Make makefile a bit more generic --- Makefile | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index a371ad0..ef27274 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,30 @@ +# Utilities +INSTALL = install +INSTALL_PROGRAM = $(INSTALL) +INSTALL_DATA = $(INSTALL) -m 644 + +# Flags +CFLAGS = -g -O0 -c -Wall -fpic +LDFLAGS = -g -shared + +# Directories LUA_INC_DIR=/usr/include/lua5.1 LUA_LIB_DIR=/usr/lib INSTALL_DIR_LUA=/usr/share/lua/5.1 INSTALL_DIR_BIN=/usr/lib/lua/5.1 +# Files +LUA_LIB = lua5.1 +LIB = core.so all: - gcc -g -O0 -c -Wall -fpic -Iinclude -I$(LUA_INC_DIR) src/*.c - gcc -g -shared -fpic -o core.so *.o -L$(LUA_LIB_DIR) -llua5.1 -levent - -install: - install -d $(INSTALL_DIR_LUA) - install lua/luaevent.lua $(INSTALL_DIR_LUA)/ - install -d $(INSTALL_DIR_BIN)/luaevent - install core.so $(INSTALL_DIR_BIN)/luaevent/core.so + $(CC) $(CFLAGS) -Iinclude -I$(LUA_INC_DIR) src/*.c + $(CC) $(LDFLAGS) -o $(LIB) *.o -L$(LUA_LIB_DIR) -l$(LUA_LIB) -levent + +install: all + $(INSTALL_DATA) -D lua/luaevent.lua $(DESTDIR)$(INSTALL_DIR_LUA)/luaevent.lua + $(INSTALL_PROGRAM) -D $(LIB) $(DESTDIR)$(INSTALL_DIR_BIN)/luaevent/$(LIB) clean: rm *.so -- cgit v1.2.3 From 2129e6154e3b48ef9568242af5d74c990c55dd6f Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Mon, 15 Feb 2010 06:22:58 +0500 Subject: luaevent.c: Make ANSI C compatible. --- src/luaevent.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/luaevent.c b/src/luaevent.c index a8d5f7d..19fb7d6 100644 --- a/src/luaevent.c +++ b/src/luaevent.c @@ -91,19 +91,21 @@ static int luaevent_addevent(lua_State* L) { } static int luaevent_loop(lua_State* L) { + int ret; le_base *base = event_base_get(L, 1); base->loop_L = L; - int ret = event_base_loop(base->base, 0); + ret = event_base_loop(base->base, 0); lua_pushinteger(L, ret); return 1; } static int luaevent_loopexit(lua_State*L) { + int ret; le_base *base = event_base_get(L, 1); struct timeval tv = { 0, 0 }; if(lua_gettop(L) >= 2) /* Optional timeout before exiting the loop */ load_timeval(luaL_checknumber(L, 2), &tv); - int ret = event_base_loopexit(base->base, &tv); + ret = event_base_loopexit(base->base, &tv); lua_pushinteger(L, ret); return 1; } -- cgit v1.2.3 From 2a0a42715e9e94441f7503e45d0f26c92ed239d9 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Mon, 15 Feb 2010 06:24:06 +0500 Subject: luaevent.h: sys/time.h is not available with MSVC, use winsock2.h on windows. --- include/luaevent.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/luaevent.h b/include/luaevent.h index ef3386b..e419998 100644 --- a/include/luaevent.h +++ b/include/luaevent.h @@ -5,7 +5,11 @@ #include #include +#ifdef _WIN32 +#include +#else #include +#endif #include typedef struct { -- cgit v1.2.3 From d4bc8bd087c740ff5b9b1cbd38e0f2b24ff74263 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Mon, 15 Feb 2010 06:25:25 +0500 Subject: buffer_event.h, event_buffer.h, event_callback.h: Remove sys/time.h, and other redundant #includes. --- include/buffer_event.h | 4 ---- include/event_buffer.h | 4 ---- include/event_callback.h | 4 ---- 3 files changed, 12 deletions(-) diff --git a/include/buffer_event.h b/include/buffer_event.h index b3fe3c1..ad8fc55 100644 --- a/include/buffer_event.h +++ b/include/buffer_event.h @@ -4,10 +4,6 @@ #define BUFFER_EVENT_H #include "luaevent.h" -#include -#include -#include -#include typedef struct { struct bufferevent* ev; diff --git a/include/event_buffer.h b/include/event_buffer.h index a7b1525..0ee4cd2 100644 --- a/include/event_buffer.h +++ b/include/event_buffer.h @@ -4,10 +4,6 @@ #define EVENT_BUFFER_H #include "luaevent.h" -#include -#include -#include -#include typedef struct { struct evbuffer* buffer; diff --git a/include/event_callback.h b/include/event_callback.h index 38aedb8..fcda8ce 100644 --- a/include/event_callback.h +++ b/include/event_callback.h @@ -4,10 +4,6 @@ #define EVENT_CALLBACK #include "luaevent.h" -#include -#include -#include -#include typedef struct { struct event ev; -- cgit v1.2.3 From 59333212814d8de493295e2a19b046bed81d9a09 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Mon, 15 Feb 2010 06:26:34 +0500 Subject: buffer_event.c, event_buffer.c, luaevent.c: Remove redundant #includes. --- src/buffer_event.c | 1 - src/event_buffer.c | 1 - src/luaevent.c | 6 ------ 3 files changed, 8 deletions(-) diff --git a/src/buffer_event.c b/src/buffer_event.c index 0b956cf..deb1963 100644 --- a/src/buffer_event.c +++ b/src/buffer_event.c @@ -1,7 +1,6 @@ /* LuaEvent - Copyright (C) 2007 Thomas Harning * Licensed as LGPL - See doc/COPYING for details */ #include "buffer_event.h" -#include "luaevent.h" #include "utility.h" #include #include diff --git a/src/event_buffer.c b/src/event_buffer.c index 62dc0e3..23e28c4 100644 --- a/src/event_buffer.c +++ b/src/event_buffer.c @@ -2,7 +2,6 @@ * Licensed as LGPL - See doc/COPYING for details */ #include "event_buffer.h" -#include "luaevent.h" #include #include diff --git a/src/luaevent.c b/src/luaevent.c index 19fb7d6..06b84c5 100644 --- a/src/luaevent.c +++ b/src/luaevent.c @@ -1,21 +1,15 @@ /* LuaEvent - Copyright (C) 2007 Thomas Harning * Licensed as LGPL - See doc/COPYING for details */ -#include "luaevent.h" #include "event_callback.h" #include "event_buffer.h" #include "buffer_event.h" -#include #include #include #define EVENT_BASE_MT "EVENT_BASE_MT" -#ifdef _WIN32 -#include -#endif - le_base* event_base_get(lua_State* L, int idx) { return (le_base*)luaL_checkudata(L, idx, EVENT_BASE_MT); } -- cgit v1.2.3 From fbcae7041b84f6e941f23d3d8dd97abc09df3ed3 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 15 Feb 2010 13:20:27 +0000 Subject: premake.lua: Remove, as we now have a standard Makefile --- premake.lua | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 premake.lua diff --git a/premake.lua b/premake.lua deleted file mode 100644 index d66861a..0000000 --- a/premake.lua +++ /dev/null @@ -1,32 +0,0 @@ -project.name = "luaevent.core" -project.libdir = "lib" -project.bindir = "bin" - -package = newpackage() -package.kind = "dll" -package.language = "c++" -package.targetprefix = "" -package.target = "core" - -package.links = { - "event" -} - -package.includepaths = { - "include", -} -if linux then - package.buildoptions = { "-Wall" } - package.config["Debug"].buildoptions = { "-O0" } - package.linkoptions = { "-Wall -L/usr/local/lib" } - package.postbuildcommands = { "mkdir -p test/luaevent", "cp bin/* test/luaevent", "cp lua/* test" } -else - print([[Other environements currently untested, may need tweaking]]) -end - -package.files = { - matchrecursive( - "src/*.c", - "include/*.h" - ) -} -- cgit v1.2.3 From aa94ab811d09e8ca5988705e708c35e406487b1d Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 15 Feb 2010 13:32:24 +0000 Subject: Update name and version to luaevent-prosody 0.1.0 --- lua/luaevent.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/luaevent.lua b/lua/luaevent.lua index ffd54f5..7e1b9ad 100644 --- a/lua/luaevent.lua +++ b/lua/luaevent.lua @@ -5,8 +5,8 @@ module("luaevent", package.seeall) require("luaevent.core") -_NAME = "luaevent"; -_VERSION = "0.3 dev"; +_NAME = "luaevent-prosody"; +_VERSION = "0.1.0"; local EV_READ = luaevent.core.EV_READ local EV_WRITE = luaevent.core.EV_WRITE -- cgit v1.2.3 From 5f7ea0a8dac6e279d4f15153f4833df1793a9c74 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 15 Feb 2010 14:15:36 +0000 Subject: event_buffer.c: Silence warnings about uninitialized variable 'ret' --- src/event_buffer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/event_buffer.c b/src/event_buffer.c index 23e28c4..ea66a94 100644 --- a/src/event_buffer.c +++ b/src/event_buffer.c @@ -200,6 +200,7 @@ static int event_buffer_write(lua_State* L) { } else if(lua_isuserdata(L, 2)) { ret = evbuffer_write(buf->buffer, getSocketFd(L, 2)); } else { + ret = 0; /* Shush uninitialized warning */ luaL_argerror(L, 2, "Unexpected data type. Expects: integer/lightuserdata/socket"); } lua_pushinteger(L, ret); @@ -221,6 +222,7 @@ static int event_buffer_read(lua_State* L) { } else if(lua_isuserdata(L, 2)) { ret = evbuffer_read(buf->buffer, getSocketFd(L, 2), len); } else { + ret = 0; /* Shush uninitialized warning */ luaL_argerror(L, 2, "Unexpected data type. Expects: integer/lightuserdata/socket"); } lua_pushinteger(L, ret); -- cgit v1.2.3 From dcf2339cc6e5820b0c8345475329ff53151a5945 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 15 Feb 2010 14:16:55 +0000 Subject: luaevent.c: Fix for backwards-compatibility with 1.3 --- src/luaevent.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/luaevent.c b/src/luaevent.c index 06b84c5..6036cf1 100644 --- a/src/luaevent.c +++ b/src/luaevent.c @@ -7,6 +7,7 @@ #include #include +#include #define EVENT_BASE_MT "EVENT_BASE_MT" @@ -105,8 +106,13 @@ static int luaevent_loopexit(lua_State*L) { } static int luaevent_method(lua_State* L) { + #ifdef _EVENT_VERSION le_base *base = event_base_get(L, 1); - lua_pushstring(L, event_base_get_method(base->base)); + if(strcmp(_EVENT_VERSION, "1.3")<0) + lua_pushstring(L, event_base_get_method(base->base)); + else + #endif + lua_pushstring(L, event_get_method()); return 1; } -- cgit v1.2.3 From a8525fc886716c42ef3f76b0ce5e5bae80e005b7 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 15 Feb 2010 14:23:00 +0000 Subject: test/basic.lua: Add simple script to load libevent, show version, etc. --- test/basic.lua | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/basic.lua diff --git a/test/basic.lua b/test/basic.lua new file mode 100644 index 0000000..4ec72c4 --- /dev/null +++ b/test/basic.lua @@ -0,0 +1,8 @@ +require "luaevent" + +print("Version:", luaevent._NAME.." "..luaevent._VERSION) +print("libevent version:", luaevent.core.libevent_version()) +print("") +base = luaevent.core.new() +print("Testing creating base object:", type(base) == "userdata" and "OK" or "FAIL") +print("libevent backend:", base:method()) -- cgit v1.2.3 From 2dfa6d34b4809e90006ac8d225a6dff1ef621050 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 15 Feb 2010 14:26:47 +0000 Subject: README: Update to reflect fork release --- README | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README b/README index 4903c71..087fbe0 100644 --- a/README +++ b/README @@ -1,3 +1,13 @@ +luaevent-prosody is a (hopefully temporary) fork of the luaevent library. This fork is +maintained by Matthew Wild . + +Source repository: http://code.matthewwild.co.uk/luaevent-prosody + +This luaevent-prosody 0.1.0 release is based on luaevent 0.2.0. See CHANGELOG for more +information about the changes. + +=== Original README from luaevent 0.2.0 === + Description: This is a binding of libevent to Lua. It will serve as a drop-in replacement for copas, and eventually support more features (async DNS, HTTP, RPC...). -- cgit v1.2.3 From a12546998f0094112b02702f5889fd17ca11b759 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 15 Feb 2010 14:27:11 +0000 Subject: CHANGELOG: Update for luaevent-prosody 0.1.0 --- CHANGELOG | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 8525ef7..2079f48 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,15 @@ +luaevent-prosody 0.1.0 - 2010-02-15 + * Fixed stack slot leak in event callbacks + * Fixed stack slot leak when error occurs in callback + * Various compilation fixes for Windows/ANSI C + * Silence some compiler warnings + + Add base:loopexit() method, with timeout support + + Add base:method() to discover backend in use + + Add core.libevent_version() to detect libevent version + + Add _NAME and _VERSION fields to module table + + base:addevent() now accepts integer fd to watch + + Switched from premake to standard Makefile for building +====== 0.2.0 - 2007-09-21 + Reorganized project to better fit GIT + Refactored and cleaned sources -- cgit v1.2.3 From d6cfe3ef1bc7d3c489abe394830211906e650d2c Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 15 Feb 2010 14:30:27 +0000 Subject: Makefile: Remove debug flags from compilation/linking --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ef27274..40a13d3 100644 --- a/Makefile +++ b/Makefile @@ -4,8 +4,8 @@ INSTALL_PROGRAM = $(INSTALL) INSTALL_DATA = $(INSTALL) -m 644 # Flags -CFLAGS = -g -O0 -c -Wall -fpic -LDFLAGS = -g -shared +CFLAGS = -O3 -c -Wall -fpic +LDFLAGS = -shared # Directories LUA_INC_DIR=/usr/include/lua5.1 -- cgit v1.2.3