From: <pst...@us...> - 2008-04-11 17:18:27
|
Revision: 455 http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=455&view=rev Author: pstieber Date: 2008-04-11 10:18:24 -0700 (Fri, 11 Apr 2008) Log Message: ----------- Changed the format of some debug output. Modified Paths: -------------- trunk/jazz/src/FindFile.cpp Modified: trunk/jazz/src/FindFile.cpp =================================================================== --- trunk/jazz/src/FindFile.cpp 2008-04-11 14:04:39 UTC (rev 454) +++ trunk/jazz/src/FindFile.cpp 2008-04-11 17:18:24 UTC (rev 455) @@ -37,7 +37,7 @@ // environment variable, if it exists // 3. appending the passed file name to the path specified by the JAZZ // environment variable, if it exists -// 4. appending the passed file name to the location of the jazz executable +// 4. appending the passed file name to the location of the Jazz++ executable // // Returns: // wxString: @@ -48,7 +48,7 @@ { if (::wxFileExists(FileName)) { - cout << "imediate hit " << FileName << endl; + cout << "FindFile: Immediate hit on file \"" << FileName << '"' << endl; return FileName; } @@ -61,7 +61,7 @@ FoundFileName << Home << wxFileName::GetPathSeparator() << FileName; if (wxFileExists(FoundFileName)) { - cout << "home " << FoundFileName << endl; + cout << "FindFile: HOME: \"" << FoundFileName << '"' << endl; return FoundFileName; } } @@ -73,7 +73,7 @@ FoundFileName << Home << wxFileName::GetPathSeparator() << FileName; if (wxFileExists(FoundFileName)) { - cout << "jazz " << FoundFileName <<endl; + cout << "FindFile: JAZZ: \"" << FoundFileName << '"' << endl; return FoundFileName; } } @@ -84,9 +84,11 @@ FoundFileName << Home << wxFileName::GetPathSeparator() << FileName; if (wxFileExists(FoundFileName)) { - cout << "startup " << FoundFileName << endl; + cout << "FindFile: Startup directory: \"" << FoundFileName << '"' << endl; return FoundFileName; } + cout << "FindFile: File not found: \"" << FileName << '"' << endl; + return wxEmptyString; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |