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

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