From: John L. <jr...@us...> - 2006-12-05 23:38:32
|
Update of /cvsroot/wxlua/wxLua/modules/wxluasocket/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv14362/wxLua/modules/wxluasocket/src Modified Files: wxlsock.cpp Log Message: cleanup the wxLuaConsole fix the editor saving before running code, print process id and use the wxLuaConsole when running Index: wxlsock.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxluasocket/src/wxlsock.cpp,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** wxlsock.cpp 1 Dec 2006 23:40:27 -0000 1.21 --- wxlsock.cpp 5 Dec 2006 23:38:28 -0000 1.22 *************** *** 254,258 **** wxLuaSocketDebugMsg(m_name + wxT(" wxLuaSocketBase::WriteDebugData"), wxString::Format(wxT("items %d"), idxMax)); ! ok = WriteInt32(idxMax); for (idx = 0; ok && (idx < idxMax); ++idx) --- 254,258 ---- wxLuaSocketDebugMsg(m_name + wxT(" wxLuaSocketBase::WriteDebugData"), wxString::Format(wxT("items %d"), idxMax)); ! ok = Write((const char*)&idxMax, sizeof(wxInt32)) == sizeof(wxInt32); for (idx = 0; ok && (idx < idxMax); ++idx) *************** *** 276,280 **** unsigned char *pMemory = pBuffer; ! ok = Write((const char*)&bufferLength, sizeof(wxInt32)); if (!ok) break; --- 276,280 ---- unsigned char *pMemory = pBuffer; ! ok = Write((const char*)&bufferLength, sizeof(wxInt32)) == sizeof(wxInt32); if (!ok) break; *************** *** 299,303 **** memcpy(pMemory, sourceBuffer.GetData(), sourceLength); ! ok = Write((const char *) pBuffer, bufferLength); delete[] pBuffer; --- 299,303 ---- memcpy(pMemory, sourceBuffer.GetData(), sourceLength); ! ok = Write((const char *) pBuffer, bufferLength) == sizeof(wxInt32); delete[] pBuffer; |