Update of /cvsroot/wxlua/wxLua/modules/wxbindstc/src
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv16698/wxLua/modules/wxbindstc/src
Modified Files:
stc.cpp
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: stc.cpp
===================================================================
RCS file: /cvsroot/wxlua/wxLua/modules/wxbindstc/src/stc.cpp,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -d -r1.40 -r1.41
*** stc.cpp 14 Jun 2007 01:23:19 -0000 1.40
--- stc.cpp 14 Jun 2007 23:59:48 -0000 1.41
***************
*** 123,127 ****
wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxlState.GetUserDataType(1, s_wxluatag_wxStyledTextCtrl);
// call AutoCompActive
! returns = self->AutoCompActive();
// push the result flag
lua_pushboolean(L, returns);
--- 123,127 ----
wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxlState.GetUserDataType(1, s_wxluatag_wxStyledTextCtrl);
// call AutoCompActive
! returns = (self->AutoCompActive());
// push the result flag
[...2126 lines suppressed...]
lua_pushnumber(L, returns);
--- 8952,8956 ----
wxStyledTextEvent * self = (wxStyledTextEvent *)wxlState.GetUserDataType(1, s_wxluatag_wxStyledTextEvent);
// call GetX
! returns = (self->GetX());
// push the result number
lua_pushnumber(L, returns);
***************
*** 8970,8974 ****
wxStyledTextEvent * self = (wxStyledTextEvent *)wxlState.GetUserDataType(1, s_wxluatag_wxStyledTextEvent);
// call GetY
! returns = self->GetY();
// push the result number
lua_pushnumber(L, returns);
--- 8970,8974 ----
wxStyledTextEvent * self = (wxStyledTextEvent *)wxlState.GetUserDataType(1, s_wxluatag_wxStyledTextEvent);
// call GetY
! returns = (self->GetY());
// push the result number
lua_pushnumber(L, returns);
|