"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/printsourcelocations.cpp" between
muscle8.20.zip and muscle8.30.zip

About: MUSCLE (Multi User Server Client Linking Environment) is a messaging server and networking API. The included server program ("muscled") lets its clients message each other, and/or store information in its serverside hierarchical database.

printsourcelocations.cpp  (muscle8.20):printsourcelocations.cpp  (muscle8.30)
skipping to change at line 23 skipping to change at line 23
using namespace muscle; using namespace muscle;
static void CheckFile(const String & path, Queue<String> & codes) static void CheckFile(const String & path, Queue<String> & codes)
{ {
FileDataIO dio(muscleFopen(path(), "r")); FileDataIO dio(muscleFopen(path(), "r"));
if (dio.GetFile()) if (dio.GetFile())
{ {
String fileName = path.Substring(GetFilePathSeparator()); String fileName = path.Substring(GetFilePathSeparator());
PlainTextMessageIOGateway gw; PlainTextMessageIOGateway gw;
gw.SetDataIO(DataIORef(&dio, false)); gw.SetDataIO(DummyDataIORef(dio));
// Read in the file // Read in the file
QueueGatewayMessageReceiver q; QueueGatewayMessageReceiver q;
while(gw.DoInput(q) > 0) {/* empty */} while(gw.DoInput(q) > 0) {/* empty */}
// Now parse the lines, and for any that have LogTime() in them, print out the line and the corresponding code key // Now parse the lines, and for any that have LogTime() in them, print out the line and the corresponding code key
uint32 lineNumber = 1; uint32 lineNumber = 1;
MessageRef msg; MessageRef msg;
while(q.RemoveHead(msg).IsOK()) while(q.RemoveHead(msg).IsOK())
{ {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)