Update of /cvsroot/wxlua/wxLua/apps/wxluacan/src
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv16936/wxLua/apps/wxluacan/src
Modified Files:
wxluacan.cpp wxluacan_bind.cpp
Log Message:
update to wxWidgets 2.8 using C++ headers
Make wxConfig::Read return [bool, value] not the other way around
Index: wxluacan.cpp
===================================================================
RCS file: /cvsroot/wxlua/wxLua/apps/wxluacan/src/wxluacan.cpp,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** wxluacan.cpp 26 Feb 2007 01:57:00 -0000 1.21
--- wxluacan.cpp 9 Mar 2007 06:10:13 -0000 1.22
***************
*** 417,421 ****
wxlCan * self = (wxlCan *)wxlState.GetUserDataType(1, s_wxluatag_wxlCan);
// call GetCmdh
! returns = self->GetCmdh();
// push the result datatype
wxlState.PushUserDataType(s_wxluatag_wxlLuaCanCmd, returns);
--- 417,421 ----
wxlCan * self = (wxlCan *)wxlState.GetUserDataType(1, s_wxluatag_wxlCan);
// call GetCmdh
! returns = (wxlLuaCanCmd *)self->GetCmdh();
// push the result datatype
wxlState.PushUserDataType(s_wxluatag_wxlLuaCanCmd, returns);
Index: wxluacan_bind.cpp
===================================================================
RCS file: /cvsroot/wxlua/wxLua/apps/wxluacan/src/wxluacan_bind.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** wxluacan_bind.cpp 26 Feb 2007 01:57:00 -0000 1.14
--- wxluacan_bind.cpp 9 Mar 2007 06:10:13 -0000 1.15
***************
*** 100,104 ****
wxlCan *returns;
// call GetCan
! returns = GetCan();
// push the result datatype
wxlState.PushUserDataType(s_wxluatag_wxlCan, returns);
--- 100,104 ----
wxlCan *returns;
// call GetCan
! returns = (wxlCan *)GetCan();
// push the result datatype
wxlState.PushUserDataType(s_wxluatag_wxlCan, returns);
***************
*** 113,117 ****
wxlLuaCanCmd *returns;
// call GetCmdhMain
! returns = GetCmdhMain();
// push the result datatype
wxlState.PushUserDataType(s_wxluatag_wxlLuaCanCmd, returns);
--- 113,117 ----
wxlLuaCanCmd *returns;
// call GetCmdhMain
! returns = (wxlLuaCanCmd *)GetCmdhMain();
// push the result datatype
wxlState.PushUserDataType(s_wxluatag_wxlLuaCanCmd, returns);
|