1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 04:16:38 +02:00

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 <asido4@gmail.com>
This commit is contained in:
Arvydas Sidorenko
2012-07-03 11:32:09 +02:00
committed by Sebastien Helleu
parent 2f59774e79
commit e84099fb97
+1 -1
View File
@@ -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)
{