Update of /cvsroot/wxlua/wxLua/bindings
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv2271/wxLua/bindings
Modified Files:
genwxbind.lua
Log Message:
Add ored enum DELETE_CLEAR_OBJECT for wxLuaState::RemoveTrackedObject to simplify
Apply patch to lparser.c "Too many variables in an assignment may cause a C stack overflow"
Index: genwxbind.lua
===================================================================
RCS file: /cvsroot/wxlua/wxLua/bindings/genwxbind.lua,v
retrieving revision 1.145
retrieving revision 1.146
diff -C2 -d -r1.145 -r1.146
*** genwxbind.lua 22 Jul 2007 04:38:27 -0000 1.145
--- genwxbind.lua 1 Aug 2007 19:15:30 -0000 1.146
***************
*** 18,22 ****
-- ---------------------------------------------------------------------------
! WXLUA_BINDING_VERSION = 16 -- Used to verify that the bindings are updated
-- This must match modules/wxlua/include/wxldefs.h
-- otherwise a compile time error will be generated.
--- 18,22 ----
-- ---------------------------------------------------------------------------
! WXLUA_BINDING_VERSION = 17 -- Used to verify that the bindings are updated
-- This must match modules/wxlua/include/wxldefs.h
-- otherwise a compile time error will be generated.
***************
*** 3246,3250 ****
end
elseif param.UnGC then
! table.insert(gcList, " if (wxlState.IsTrackedObject("..argName..")) wxlState.RemoveTrackedObject("..argName..", wxLuaState::UNDELETE);\n")
end
--- 3246,3250 ----
end
elseif param.UnGC then
! table.insert(gcList, " if (wxlState.IsTrackedObject("..argName..")) wxlState.RemoveTrackedObject("..argName..", wxLuaState::UNDELETE_OBJECT);\n")
end
***************
*** 3585,3589 ****
if parseObject.UnGCThis then
! table.insert(codeList, " wxlState.RemoveTrackedObject(self, wxLuaState::UNDELETE);\n")
elseif parseObject.GCThis then
if parseObject.Encapsulate then
--- 3585,3589 ----
if parseObject.UnGCThis then
! table.insert(codeList, " wxlState.RemoveTrackedObject(self, wxLuaState::UNDELETE_OBJECT);\n")
elseif parseObject.GCThis then
if parseObject.Encapsulate then
***************
*** 3665,3669 ****
end
elseif member.UnGC then
! table.insert(codeList, " if (wxlState.IsTrackedObject(returns)) wxlState.RemoveTrackedObject(returns, wxLuaState::UNDELETE);\n")
end
--- 3665,3669 ----
end
elseif member.UnGC then
! table.insert(codeList, " if (wxlState.IsTrackedObject(returns)) wxlState.RemoveTrackedObject(returns, wxLuaState::UNDELETE_OBJECT);\n")
end
***************
*** 3836,3840 ****
table.insert(codeList, " "..parseObject.Name.." * self = ("..parseObject.Name.." *)wxlState.GetUserDataType(1, s_wxluatag_"..MakeClassVar(parseObject.Name)..");\n")
CommentBindingTable(codeList, " // if removed from tracked mem list, reset the tag so that gc() is not called on this object.\n")
! table.insert(codeList, " if ((self != NULL) && wxlState.RemoveTrackedObject(self, wxLuaState::DELETE_OBJECT|wxLuaState::CLEAR_LUA_TRACKED|wxLuaState::CLEAR_DERIVED_METHODS))\n")
table.insert(codeList, " {\n")
table.insert(codeList, " lua_pushnil(L);\n")
--- 3836,3840 ----
table.insert(codeList, " "..parseObject.Name.." * self = ("..parseObject.Name.." *)wxlState.GetUserDataType(1, s_wxluatag_"..MakeClassVar(parseObject.Name)..");\n")
CommentBindingTable(codeList, " // if removed from tracked mem list, reset the tag so that gc() is not called on this object.\n")
! table.insert(codeList, " if ((self != NULL) && wxlState.RemoveTrackedObject(self, wxLuaState::DELETE_CLEAR_OBJECT))\n")
table.insert(codeList, " {\n")
table.insert(codeList, " lua_pushnil(L);\n")
|