From: John L. <jr...@us...> - 2006-12-14 22:03:03
|
Update of /cvsroot/wxlua/wxLua/bindings In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv17944/wxLua/bindings Modified Files: genwxbind.lua Log Message: speedup genwxbind.lua another 30%, make global vars more readable Index: genwxbind.lua =================================================================== RCS file: /cvsroot/wxlua/wxLua/bindings/genwxbind.lua,v retrieving revision 1.91 retrieving revision 1.92 diff -C2 -d -r1.91 -r1.92 *** genwxbind.lua 14 Dec 2006 07:00:33 -0000 1.91 --- genwxbind.lua 14 Dec 2006 22:02:57 -0000 1.92 *************** *** 21,37 **** -- see modules/wxlua/include/wxldefs.h ! keywords = {} -- Keyword table ! conditions = {} -- Preprocessor conditions ! conditionOperators = {} -- Preprocessor operators ! operators = {} -- %operators ! ignore = {} -- Keyword ignore table ! delimiters = { "[]", "==", "&&", "||", "//", "/*", "*/", "*", "&", "|", "(", ")", "[", "]", ",", "=", "{", "}", "!", ";", "\t", "\r", "\n", " " } ! keep = { "[]", "==", "&&", "||", "//", "/*", "*/", "*", "&", "|", "(", ")", "[", "]", ",", "=", "{", "!" } -- keep delimiters, except for white space [...2591 lines suppressed...] ! table.insert(fileData, " for k, v in pairs("..hook_cpp_namespace.."_dataTypes) do\n") ! table.insert(fileData, " dataTypes[k] = v\n") table.insert(fileData, " end\n") ! table.insert(fileData, " for k, v in pairs("..hook_cpp_namespace.."_conditions) do\n") ! table.insert(fileData, " conditions[k] = v\n") table.insert(fileData, " end\n") --- 4603,4614 ---- table.insert(fileData, "-- Cache the dataTypes\n") table.insert(fileData, "-- ---------------------------------------------------------------------------\n") ! table.insert(fileData, " for k, v in pairs("..hook_cpp_namespace.."_typedefTable) do\n") ! table.insert(fileData, " typedefTable[k] = v\n") table.insert(fileData, " end\n") ! table.insert(fileData, " for k, v in pairs("..hook_cpp_namespace.."_dataTypeTable) do\n") ! table.insert(fileData, " dataTypeTable[k] = v\n") table.insert(fileData, " end\n") ! table.insert(fileData, " for k, v in pairs("..hook_cpp_namespace.."_preprocConditionTable) do\n") ! table.insert(fileData, " preprocConditionTable[k] = v\n") table.insert(fileData, " end\n") |