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

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