[SerialICE] Patch merged into serialice/master: e2efdc6 Fix build with lua5.2

gerrit at coreboot.org gerrit at coreboot.org
Wed Apr 4 15:54:45 CEST 2012


the following patch was just integrated into master:
commit e2efdc6562932d77007d4f0d7aaee2afcee8fbd3
Author: Patrick Georgi <patrick at georgi-clan.de>
Date:   Mon Apr 2 14:39:14 2012 +0200

    Fix build with lua5.2
    
    Lua5.2 changed parts of its API.
    - deprecated luaL_register
    Use luaL_setfuncs instead (but not on 5.1, which doesn't have it)
    
    - hides the implementation detail of globals.
    Use the public API instead.
    
    Coccinelle script that was used for this part of the change:
      @@
      expression L;
      expression T;
      @@
      -lua_setfield(L, LUA_GLOBALSINDEX, T);
      +lua_setglobal(L, T);
    
      @@
      expression L;
      expression T;
      @@
      -lua_getfield(L, LUA_GLOBALSINDEX, T);
      +lua_getglobal(L, T);
    
    Change-Id: I4aff9ac443500aee261e650ec4894c6f911f2968
    Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>

Build-Tested: build bot (Jenkins) at Wed Apr  4 15:10:24 2012, giving +1
Reviewed-By: Mathias Krause <minipli at googlemail.com> at Wed Apr  4 15:54:44 2012, giving +2
See http://review.coreboot.org/841 for details.

-gerrit



More information about the SerialICE mailing list