From: John L. <jr...@us...> - 2007-06-15 00:00:20
|
Update of /cvsroot/wxlua/wxLua/bindings/wxlua In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv16698/wxLua/bindings/wxlua Modified Files: wxlua.i Log Message: Add "voidptr_long" binding tag to allow using void* as a number Speed up bindings by using numbers as keys in the registry (avoid lua doing a string copy) Get rid of wxLuaState::GetXXXTag functions, something better needs to be implemented, using global vars for the few tags that we really use often now Allow the wxLuaStackDialog to be able to show lua's registry lots of cleanup in bindings.wx.lua Index: wxlua.i =================================================================== RCS file: /cvsroot/wxlua/wxLua/bindings/wxlua/wxlua.i,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** wxlua.i 14 Jun 2007 01:23:07 -0000 1.1 --- wxlua.i 14 Jun 2007 23:59:41 -0000 1.2 *************** *** 185,189 **** //----------------------------------------------------------------------------- ! // wxLuaObject - Allows Lua data items to be used for client data. %enum wxLuaObject_Type --- 185,189 ---- //----------------------------------------------------------------------------- ! // wxLuaObject - Allows Lua data items to be used for wxClientData. %enum wxLuaObject_Type *************** *** 195,199 **** %endenum ! %class %delete wxLuaObject, wxObject // %override wxLuaObject(any value type) // C++ Func: wxLuaObject(const wxLuaState& wxlState, int stack_idx = 1) --- 195,199 ---- %endenum ! %class %delete wxLuaObject, wxObject // ALSO! wxClientData use it anywhere that takes that // %override wxLuaObject(any value type) // C++ Func: wxLuaObject(const wxLuaState& wxlState, int stack_idx = 1) *************** *** 217,222 **** //wxArrayInt *GetArrayPtr(); ! int GetAllocationFlags() const ! bool HasAllocationFlag(wxLuaObject_Type flag) ! //int SetAllocationFlag(wxLuaObject_Type flag, bool set) // NOT for use in lua %endclass --- 217,220 ---- //wxArrayInt *GetArrayPtr(); ! int GetAllocationFlag() const %endclass |