From: John L. <jr...@us...> - 2007-03-15 23:25:23
|
Update of /cvsroot/wxlua/wxLua/bindings In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv5608/wxLua/bindings Modified Files: genwxbind.lua Log Message: simplified binding generator and write bindings out alphabetically use #elif statements to guarantee there is only one item with the same name Index: genwxbind.lua =================================================================== RCS file: /cvsroot/wxlua/wxLua/bindings/genwxbind.lua,v retrieving revision 1.107 retrieving revision 1.108 diff -C2 -d -r1.107 -r1.108 *** genwxbind.lua 15 Mar 2007 14:20:13 -0000 1.107 --- genwxbind.lua 15 Mar 2007 23:24:49 -0000 1.108 *************** *** 26,31 **** preprocConditionTable = {} -- Preprocessor conditions for #ifing the output code ! -- table is ["binding code"] = "C preproc code for #if statement" ! preprocOperatorTable = {} -- Preprocessor operators typedefTable = {} -- all %typedefs read from the interface files --- 26,31 ---- preprocConditionTable = {} -- Preprocessor conditions for #ifing the output code ! -- table["binding code condition"] = "C preproc code suitable for #if statement" [...965 lines suppressed...] ! end ! end ! ! if HasCondition(condition) and (condition ~= object.Condition) then ! table.insert(fileData, "#endif // "..condition.."\n\n") ! end ! end ! table.insert(fileData, "};\n\n") --- 4406,4414 ---- end -- Output Method Map Table CommentBindingTable(fileData, "// Map Lua Class Methods to C Binding Functions\n") table.insert(fileData, "WXLUAMETHOD "..MakeClassVar(ObjectName).."_methods[] = {\n") ! GenerateMap(fileData, sortedBindings, "", nil, false, object.Condition) table.insert(fileData, "};\n\n") |