From: John L. <jr...@us...> - 2007-05-31 17:19:18
|
Update of /cvsroot/wxlua/wxLua/bindings In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv14219/wxLua/bindings Modified Files: genwxbind.lua Added Files: Makefile Log Message: Huge changes, overloaded functions by default replace wx.wxNull with wx.NULL change WXLUA_VERSION and others with wxLUA_VERSION class member enums are part of class table static class member functions are part of class table %properties are generated on the fly ... and more, see docs/changelog.txt --- NEW FILE: Makefile --- # Make all the bindings in linux using the other Makefiles # Note: run $make -B since for some reason make thinks wxwidgets, wxstc, # wxluasocket are all up to date. WXLUA_DIR = ../ LUA = $(WXLUA_DIR)/bin/lua all: wxwidgets wxstc wxluasocket wxluacan wxwidgets: @echo Building wxWidgets @($(LUA) -e"rulesFilename=\"wxwidgets/wx_rules.lua\"" genwxbind.lua > wxwidgets/error.txt) # @(cd $(WXLUA_DIR)/bindings/wxwidgets && make -B) wxstc: @echo Building wxStc @($(LUA) -e"rulesFilename=\"wxstc/wxstc_rules.lua\"" genwxbind.lua > wxstc/error.txt) wxluasocket: @echo Building wxLuaSocket @($(LUA) -e"rulesFilename=\"wxluasocket/wxluasocket_rules.lua\"" genwxbind.lua > wxluasocket/error.txt) wxluacan: @echo "Building wxLuaCan (ps. did you forget to run make -B)" @(cd $(WXLUA_DIR)/apps/wxluacan/src && make genwxbind) # do nothing to clean clean: Index: genwxbind.lua =================================================================== RCS file: /cvsroot/wxlua/wxLua/bindings/genwxbind.lua,v retrieving revision 1.110 retrieving revision 1.111 diff -C2 -d -r1.110 -r1.111 *** genwxbind.lua 19 Mar 2007 03:47:17 -0000 1.110 --- genwxbind.lua 31 May 2007 17:18:45 -0000 1.111 *************** *** 18,22 **** -- --------------------------------------------------------------------------- ! WXLUA_BINDING_VERSION = 6 -- Used to verify that the bindings are updated -- This must match modules/wxlua/include/wxldefs.h --- 18,22 ---- -- --------------------------------------------------------------------------- ! WXLUA_BINDING_VERSION = 7 -- Used to verify that the bindings are updated -- This must match modules/wxlua/include/wxldefs.h [...1363 lines suppressed...] + + cfuncTable[s] = n + elseif string.find(fileData[n], "s_wxluafunc", 1, 1) then + for k, v in pairs(cfuncTable) do + if string.find(fileData[n], k..",", 1, 1) or string.find(fileData[n], k.." ", 1, 1) then + cfuncTable[k] = -1 -- found + end + end + end + end + + for k, v in pairs(cfuncTable) do + if v > 0 then + fileData[v] = "// "..fileData[v] + end + end + end + function SerializeDataTypes(filename) local fileData = {} |