Update of /cvsroot/wxlua/wxLua/bindings/wxwidgets
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv21421/wxLua/bindings/wxwidgets
Modified Files:
wxbase_rules.lua
Log Message:
Removed the rest of "UnregisterBinding" functions since they did nothing useful
Moved binding base class linking code to wxLuaBinding::InitAllBindings from
wxLuaState::RegisterBindings
Removed wxLuaStateData::m_winDestroyCallbackList and
wxLuaStateData::m_callbackList and added two registry tables for their
values. Should be faster and easier to verify operation.
Fix searching in the wxLuaStackDialog.
Index: wxbase_rules.lua
===================================================================
RCS file: /cvsroot/wxlua/wxLua/bindings/wxwidgets/wxbase_rules.lua,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** wxbase_rules.lua 17 Nov 2007 00:14:55 -0000 1.4
--- wxbase_rules.lua 5 Dec 2007 00:34:45 -0000 1.5
***************
*** 134,146 ****
wxLuaBinding_PostRegister =
[[
! wxLuaState wxLS(wxlState);
! wxCHECK_RET(wxLS.Ok(), wxT("Invalid wxLuaState"));
! lua_State* L = wxLS.GetLuaState();
! g_wxluatag_NULL = wxLS.wxluaT_NewTag();
lua_pushlstring(L, "NULL", 4);
! wxLS.wxluaT_PushUserTag(NULL, g_wxluatag_NULL, true);
! lua_rawset(L, luaTable);
]]
--- 134,146 ----
wxLuaBinding_PostRegister =
[[
! wxCHECK_RET(wxlState.Ok(), wxT("Invalid wxLuaState"));
! lua_State* L = wxlState.GetLuaState();
! g_wxluatag_NULL = wxluaT_newtag(L);
! lua_pop(L, 1); // pop the table
lua_pushlstring(L, "NULL", 4);
! wxluaT_pushusertag(L, NULL, g_wxluatag_NULL, true);
! lua_rawset(L, luaTable); // set t["NULL"] = userdata(NULL) w/ NULL tag
]]
|