9fa5f4
From 1e12a153d9a82a771c3bfd95c0265b810a424b3c Mon Sep 17 00:00:00 2001
9fa5f4
From: Nils Philippsen <nils@redhat.com>
9fa5f4
Date: Mon, 1 Jul 2013 14:41:33 +0200
9fa5f4
Subject: [PATCH] patch: lua-5.2
9fa5f4
9fa5f4
Squashed commit of the following:
9fa5f4
9fa5f4
commit 96f65d260c6e40940f2818b721c19565c1b40607
9fa5f4
Author: Vincent Untz <vuntz@gnome.org>
9fa5f4
Date:   Wed Jan 11 09:52:25 2012 +0100
9fa5f4
9fa5f4
    Fix build with lua 5.2 by not using API deprecated in 5.1 already
9fa5f4
9fa5f4
    https://bugzilla.gnome.org/show_bug.cgi?id=667675
9fa5f4
    (cherry picked from commit a14a29c39352c60f003a65b721c9af8a1d8d20df)
9fa5f4
---
9fa5f4
 operations/workshop/external/gluas.c | 6 +++---
9fa5f4
 1 file changed, 3 insertions(+), 3 deletions(-)
9fa5f4
9fa5f4
diff --git a/operations/workshop/external/gluas.c b/operations/workshop/external/gluas.c
9fa5f4
index 8ba1101..63e82a2 100644
9fa5f4
--- a/operations/workshop/external/gluas.c
9fa5f4
+++ b/operations/workshop/external/gluas.c
9fa5f4
@@ -97,7 +97,7 @@ static int l_progress  (lua_State * lua);
9fa5f4
 static int l_flush     (lua_State * lua);
9fa5f4
 static int l_print     (lua_State * lua);
9fa5f4
 
9fa5f4
-static const luaL_reg gluas_functions[] =
9fa5f4
+static const luaL_Reg gluas_functions[] =
9fa5f4
 {
9fa5f4
     {"set_rgba",    l_set_rgba},
9fa5f4
     {"get_rgba",    l_get_rgba},
9fa5f4
@@ -122,7 +122,7 @@ static const luaL_reg gluas_functions[] =
9fa5f4
 };
9fa5f4
 static void
9fa5f4
 register_functions (lua_State      *L,
9fa5f4
-                    const luaL_reg *l)
9fa5f4
+                    const luaL_Reg *l)
9fa5f4
 {
9fa5f4
   for (;l->name; l++)
9fa5f4
     lua_register (L, l->name, l->func);
9fa5f4
@@ -146,7 +146,7 @@ drawable_lua_process (GeglOperation       *op,
9fa5f4
     lua_State *L;
9fa5f4
     Priv p;
9fa5f4
 
9fa5f4
-    L = lua_open ();
9fa5f4
+    L = luaL_newstate ();
9fa5f4
     luaL_openlibs (L);
9fa5f4
 
9fa5f4
     register_functions (L, gluas_functions);
9fa5f4
-- 
9fa5f4
1.8.3.1
9fa5f4