From: John L. <jr...@us...> - 2007-06-16 06:21:51
|
Update of /cvsroot/wxlua/wxLua/modules/wxluasocket/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv19284/wxLua/modules/wxluasocket/src Modified Files: wxldserv.cpp wxldtarg.cpp wxlsock.cpp Log Message: Add back the wxTreeCtrl into the stack dialog, on left of listctrl so you get both for easier navigation. Added functions to the wxlua.XXX table to get info about the status of wxLua Use qsort and bsearch to find the class methods ~ %25 faster Make wxLuaDebugData not always create it's ref data so it can !Ok() Index: wxldtarg.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxluasocket/src/wxldtarg.cpp,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** wxldtarg.cpp 31 May 2007 17:18:55 -0000 1.37 --- wxldtarg.cpp 16 Jun 2007 06:21:47 -0000 1.38 *************** *** 446,450 **** bool wxLuaDebugTarget::EnumerateStack() { ! wxLuaDebugData debugData; EnterLuaCriticalSection(); --- 446,450 ---- bool wxLuaDebugTarget::EnumerateStack() { ! wxLuaDebugData debugData(true); EnterLuaCriticalSection(); *************** *** 457,461 **** bool wxLuaDebugTarget::EnumerateStackEntry(int stackRef) { ! wxLuaDebugData debugData; EnterLuaCriticalSection(); --- 457,461 ---- bool wxLuaDebugTarget::EnumerateStackEntry(int stackRef) { ! wxLuaDebugData debugData(true); EnterLuaCriticalSection(); *************** *** 468,472 **** bool wxLuaDebugTarget::EnumerateTable(int tableRef, int nIndex, long nItemNode) { ! wxLuaDebugData debugData; EnterLuaCriticalSection(); --- 468,472 ---- bool wxLuaDebugTarget::EnumerateTable(int tableRef, int nIndex, long nItemNode) { ! wxLuaDebugData debugData(true); EnterLuaCriticalSection(); Index: wxldserv.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxluasocket/src/wxldserv.cpp,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** wxldserv.cpp 11 Jun 2007 03:58:10 -0000 1.44 --- wxldserv.cpp 16 Jun 2007 06:21:47 -0000 1.45 *************** *** 52,58 **** m_has_message(event.m_has_message), m_lua_ref(event.m_lua_ref), m_enabled_flag(event.m_enabled_flag) { ! SetDebugData(event.GetReference(), event.GetDebugData().Copy()); } --- 52,59 ---- m_has_message(event.m_has_message), m_lua_ref(event.m_lua_ref), + m_debugData(wxNullLuaDebugData), m_enabled_flag(event.m_enabled_flag) { ! SetDebugData(event.GetReference(), event.GetDebugData()); } *************** *** 66,69 **** --- 67,71 ---- m_has_message(false), m_lua_ref(-1), + m_debugData(wxNullLuaDebugData), m_enabled_flag(enabled_flag) { *************** *** 79,84 **** void wxLuaDebuggerEvent::SetDebugData(long nReference, const wxLuaDebugData& debugData) { ! m_lua_ref = nReference; ! m_debugData = debugData; } --- 81,86 ---- void wxLuaDebuggerEvent::SetDebugData(long nReference, const wxLuaDebugData& debugData) { ! m_lua_ref = nReference; ! m_debugData = debugData; } *************** *** 430,434 **** case wxLUASOCKET_DEBUGGEE_EVENT_STACK_ENUM: { ! wxLuaDebugData debugData; if (CheckSocketRead( --- 432,436 ---- case wxLUASOCKET_DEBUGGEE_EVENT_STACK_ENUM: { ! wxLuaDebugData debugData(true); if (CheckSocketRead( *************** *** 447,451 **** { wxInt32 stackRef = 0; ! wxLuaDebugData debugData; if (CheckSocketRead( --- 449,453 ---- { wxInt32 stackRef = 0; ! wxLuaDebugData debugData(true); if (CheckSocketRead( *************** *** 465,469 **** { long itemNode = 0; ! wxLuaDebugData debugData; if (CheckSocketRead( --- 467,471 ---- { long itemNode = 0; ! wxLuaDebugData debugData(true); if (CheckSocketRead( Index: wxlsock.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxluasocket/src/wxlsock.cpp,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** wxlsock.cpp 11 Jun 2007 03:58:10 -0000 1.29 --- wxlsock.cpp 16 Jun 2007 06:21:47 -0000 1.30 *************** *** 153,157 **** bool wxLuaSocketBase::ReadDebugData(wxLuaDebugData& value) { ! wxLuaDebugData debugData; bool ok = false; --- 153,157 ---- bool wxLuaSocketBase::ReadDebugData(wxLuaDebugData& value) { ! wxLuaDebugData debugData(true); bool ok = false; |