1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Updated hardcoded lua version to 5.2, removed debug from lua_api

This commit is contained in:
James Booth 2014-05-26 23:58:18 +01:00
parent d0647e3582
commit 3065b8be06
2 changed files with 2 additions and 3 deletions

View File

@ -120,8 +120,8 @@ elif test "x$enable_lua_plugins" != xno; then
#AX_PROG_LUA
#AX_LUA_HEADERS
#AX_LUA_LIBS
LUA_INCLUDE="-I/usr/include/lua5.1"
LUA_LIB="-llua5.1"
LUA_INCLUDE="-I/usr/include/lua5.2"
LUA_LIB="-llua5.2"
AM_CONDITIONAL([BUILD_LUA_API], [true])
AC_DEFINE([HAVE_LUA], [1], [Lua support])
else

View File

@ -73,7 +73,6 @@ static int
lua_api_register_timed(lua_State *L)
{
int interval_seconds = lua_tonumber(L, -1);
cons_show("interval seconds = %d", interval_seconds);
lua_pop(L, 1);
int *p_callback_ref = malloc(sizeof(int));
*p_callback_ref = luaL_ref(L, LUA_REGISTRYINDEX);