Guest

Untitled

By: a guest on Nov 19th, 2012  |  syntax: None  |  size: 1.26 KB  |  hits: 3  |  expires: in 58 min
download  |  raw  |  embed  |  report abuse
Copied
  1. commit a5b601502d3293966994911cfcab6a0eb0d68e41
  2. Author: Vincent Untz <vuntz@gnome.org>
  3. Date:   Wed Jan 11 09:52:25 2012 +0100
  4.  
  5.     Fix build with lua 5.2 by not using API deprecated in 5.1 already
  6.    
  7.     https://bugzilla.gnome.org/show_bug.cgi?id=667675
  8.  
  9. diff --git a/operations/workshop/external/gluas.c b/operations/workshop/external/gluas.c
  10. index 536f1d9..dbcc362 100644
  11. --- a/operations/workshop/external/gluas.c
  12. +++ b/operations/workshop/external/gluas.c
  13. @@ -97,7 +97,7 @@ static int l_progress  (lua_State * lua);
  14.  static int l_flush     (lua_State * lua);
  15.  static int l_print     (lua_State * lua);
  16.  
  17. -static const luaL_reg gluas_functions[] =
  18. +static const luaL_Reg gluas_functions[] =
  19.  {
  20.      {"set_rgba",    l_set_rgba},
  21.      {"get_rgba",    l_get_rgba},
  22. @@ -122,7 +122,7 @@ static const luaL_reg gluas_functions[] =
  23.  };
  24.  static void
  25.  register_functions (lua_State      *L,
  26. -                    const luaL_reg *l)
  27. +                    const luaL_Reg *l)
  28.  {
  29.    for (;l->name; l++)
  30.      lua_register (L, l->name, l->func);
  31. @@ -146,7 +146,7 @@ drawable_lua_process (GeglOperation       *op,
  32.      lua_State *L;
  33.      Priv p;
  34.  
  35. -    L = lua_open ();
  36. +    L = luaL_newstate ();
  37.      luaL_openlibs (L);
  38.  
  39.      register_functions (L, gluas_functions);