Blame SOURCES/gegl-0.2.0-lua-5.2.patch

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