weechat-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Weechat-dev] [PATCH 2/3] Replaced already in Lua 5.1 deprecated lua_ope


From: Arvydas Sidorenko
Subject: [Weechat-dev] [PATCH 2/3] Replaced already in Lua 5.1 deprecated lua_open()
Date: Tue, 26 Jun 2012 02:00:48 +0200

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 <address@hidden>
---
 src/plugins/scripts/lua/weechat-lua.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/plugins/scripts/lua/weechat-lua.c 
b/src/plugins/scripts/lua/weechat-lua.c
index 2b364d3..2cfea5f 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)
     {
-- 
1.7.8.6




reply via email to

[Prev in Thread] Current Thread [Next in Thread]