From: John L. <jr...@us...> - 2006-12-14 07:00:36
|
Update of /cvsroot/wxlua/wxLua/bindings In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv10948/wxLua/bindings Modified Files: genwxbind.lua Log Message: double the speed of genwxbind.lua Index: genwxbind.lua =================================================================== RCS file: /cvsroot/wxlua/wxLua/bindings/genwxbind.lua,v retrieving revision 1.90 retrieving revision 1.91 diff -C2 -d -r1.90 -r1.91 *** genwxbind.lua 14 Dec 2006 01:01:22 -0000 1.90 --- genwxbind.lua 14 Dec 2006 07:00:33 -0000 1.91 *************** *** 2,16 **** -- Name: genwxbind.lua -- Purpose: This script generates wrapper files from the table interface_fileTable (see below) ! -- Author: Ray Gilbert -- Created: 19/05/2004 -- Copyright: Ray Gilbert ! -- sLicence: wxWidgets licence -- --------------------------------------------------------------------------- - -- code generated is compatible with wxWrapLua.lua, J Winwood's work from wxLua - -- - -- There were a few shortcomings of the code generated by wxWrapLua [...2004 lines suppressed...] end end --- 4590,4606 ---- for condition, BindTableList in pairs_sort(BindTable) do ! if HasCondition(condition) and (condition ~= object.Condition) then ! table.insert(fileData, "\n#if "..condition.."\n") ! end ! local bindCount = #BindTableList ! for i=1,bindCount do ! if BindTableList[i].Map then ! table.insert(fileData, BindTableList[i].Map) end + end ! if HasCondition(condition) and (condition ~= object.Condition) then ! table.insert(fileData, "#endif // "..condition.."\n\n") end end |