From: <bl...@us...> - 2003-04-01 08:29:10
|
Update of /cvsroot/cpptool/rfta/src/astdumper In directory sc8-pr-cvs1:/tmp/cvs-serv18693/src/astdumper Modified Files: astdump.dsp ASTDumper.cpp Main.cpp Log Message: * upgraded to the official boost 1.30 filesystem Index: astdump.dsp =================================================================== RCS file: /cvsroot/cpptool/rfta/src/astdumper/astdump.dsp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** astdump.dsp 31 Jan 2003 21:37:03 -0000 1.2 --- astdump.dsp 1 Apr 2003 08:29:04 -0000 1.3 *************** *** 99,158 **** # Begin Source File ! SOURCE=..\..\deplib\boostcvs\libs\filesystem\src\exception.cpp ! ! !IF "$(CFG)" == "astdump - Win32 Release" ! ! # SUBTRACT CPP /YX ! ! !ELSEIF "$(CFG)" == "astdump - Win32 Debug" ! ! !ENDIF ! ! # End Source File ! # Begin Source File ! ! SOURCE=..\..\deplib\boostcvs\boost\filesystem\exception.hpp ! # End Source File ! # Begin Source File ! ! SOURCE=..\..\deplib\boostcvs\boost\filesystem\fstream.hpp # End Source File # Begin Source File ! SOURCE=..\..\deplib\boostcvs\boost\filesystem\operations.hpp # End Source File # Begin Source File SOURCE=..\..\deplib\boostcvs\libs\filesystem\src\operations_posix_windows.cpp - - !IF "$(CFG)" == "astdump - Win32 Release" - - # SUBTRACT CPP /YX - - !ELSEIF "$(CFG)" == "astdump - Win32 Debug" - - !ENDIF - - # End Source File - # Begin Source File - - SOURCE=..\..\deplib\boostcvs\boost\filesystem\path.hpp # End Source File # Begin Source File SOURCE=..\..\deplib\boostcvs\libs\filesystem\src\path_posix_windows.cpp - - !IF "$(CFG)" == "astdump - Win32 Release" - - # SUBTRACT CPP /YX - - !ELSEIF "$(CFG)" == "astdump - Win32 Debug" - - !ENDIF - - # End Source File - # Begin Source File - - SOURCE=..\..\deplib\boostcvs\boost\filesystem\recursive_directory_iterator.hpp # End Source File # End Group --- 99,115 ---- # Begin Source File ! SOURCE=..\..\deplib\boostcvs\libs\filesystem\src\convenience.cpp # End Source File # Begin Source File ! SOURCE=..\..\deplib\boostcvs\libs\filesystem\src\exception.cpp # End Source File # Begin Source File SOURCE=..\..\deplib\boostcvs\libs\filesystem\src\operations_posix_windows.cpp # End Source File # Begin Source File SOURCE=..\..\deplib\boostcvs\libs\filesystem\src\path_posix_windows.cpp # End Source File # End Group Index: ASTDumper.cpp =================================================================== RCS file: /cvsroot/cpptool/rfta/src/astdumper/ASTDumper.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ASTDumper.cpp 20 Dec 2002 08:30:50 -0000 1.4 --- ASTDumper.cpp 1 Apr 2003 08:29:05 -0000 1.5 *************** *** 160,164 **** { std::string fileName = (boost::format( "dump-%05d.html" ) % serialNo).str(); ! boost::filesystem::path filePath = logDir << fileName; if ( !boost::filesystem::exists( filePath ) ) return filePath; --- 160,164 ---- { std::string fileName = (boost::format( "dump-%05d.html" ) % serialNo).str(); ! boost::filesystem::path filePath = logDir / fileName; if ( !boost::filesystem::exists( filePath ) ) return filePath; Index: Main.cpp =================================================================== RCS file: /cvsroot/cpptool/rfta/src/astdumper/Main.cpp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** Main.cpp 23 Oct 2002 20:25:17 -0000 1.1.1.1 --- Main.cpp 1 Apr 2003 08:29:05 -0000 1.2 *************** *** 37,46 **** int lastLineNumber = boost::lexical_cast<int>( argv[2] ); boost::filesystem::path path( argv[3], ! boost::filesystem::system_specific ); std::string outputPathName = "astdump"; if ( argc == 5 ) outputPathName = argv[4]; boost::filesystem::path outputPath( outputPathName, ! boost::filesystem::system_specific ); boost::filesystem::ifstream stream( path ); --- 37,46 ---- int lastLineNumber = boost::lexical_cast<int>( argv[2] ); boost::filesystem::path path( argv[3], ! boost::filesystem::native ); std::string outputPathName = "astdump"; if ( argc == 5 ) outputPathName = argv[4]; boost::filesystem::path outputPath( outputPathName, ! boost::filesystem::native ); boost::filesystem::ifstream stream( path ); *************** *** 64,68 **** Refactoring::ASTDumper dumper; ! dumper.dump( source, outputPath, path.generic_path() ); } catch ( std::exception &e ) --- 64,68 ---- Refactoring::ASTDumper dumper; ! dumper.dump( source, outputPath, path.string() ); } catch ( std::exception &e ) |