gegl-0.2.0-lua-5.2.patch 1.6 KB

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