From e84099fb97d33fd80986be123cf85ca47d88ddef Mon Sep 17 00:00:00 2001 From: Arvydas Sidorenko Date: Tue, 3 Jul 2012 11:32:09 +0200 Subject: lua: replace lua_open by luaL_newstate (compatibility with Lua 5.2) In Lua 5.1 lua_open directly calls luaL_newstate, but was deprecated. In Lua 5.2 lua_open was removed. Signed-off-by: Arvydas Sidorenko --- src/plugins/scripts/lua/weechat-lua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins') diff --git a/src/plugins/scripts/lua/weechat-lua.c b/src/plugins/scripts/lua/weechat-lua.c index 2b364d38e..2cfea5f5e 100644 --- a/src/plugins/scripts/lua/weechat-lua.c +++ b/src/plugins/scripts/lua/weechat-lua.c @@ -261,7 +261,7 @@ weechat_lua_load (const char *filename) lua_current_script = NULL; lua_registered_script = NULL; - lua_current_interpreter = lua_open (); + lua_current_interpreter = luaL_newstate(); if (lua_current_interpreter == NULL) { -- cgit v1.2.3