From a2e91278b6ba7575907982b842f9a8e69b7bb0fb Mon Sep 17 00:00:00 2001 From: Royce Mitchell III Date: Wed, 24 Aug 2005 20:06:54 +0000 Subject: [PATCH] added some verbosity standardized back on printf from cout fixed loop variable conflict svn path=/trunk/; revision=17518 --- reactos/tools/rbuild/backend/msvc/msvc.cpp | 6 +++--- reactos/tools/rbuild/backend/msvc/msvcmaker.cpp | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/reactos/tools/rbuild/backend/msvc/msvc.cpp b/reactos/tools/rbuild/backend/msvc/msvc.cpp index b0f811410b3..9b4c0d1f65f 100644 --- a/reactos/tools/rbuild/backend/msvc/msvc.cpp +++ b/reactos/tools/rbuild/backend/msvc/msvc.cpp @@ -61,7 +61,7 @@ void MSVCBackend::Process() string filename = ProjectNode.name + ".dsw"; - cout << "Creating MSVC project: " << filename << endl; + printf ( "Creating MSVC workspace: %s\n", filename.c_str() ); ProcessModules(); @@ -69,7 +69,7 @@ void MSVCBackend::Process() if ( !m_dswFile ) { - cout << "Could not open file." << endl; + printf ( "Could not create file '%s'.\n", filename.c_str() ); return; } _generate_wine_dsw ( m_dswFile ); @@ -101,7 +101,7 @@ void MSVCBackend::Process() // The MSVC build still needs the mingw backend. //ProcessModules(); - cout << "Done." << endl << endl; + printf ( "Done.\n" ); /*cout << "Don't expect the MSVC backend to work yet. "<< endl << endl; diff --git a/reactos/tools/rbuild/backend/msvc/msvcmaker.cpp b/reactos/tools/rbuild/backend/msvc/msvcmaker.cpp index 01bb414ae81..149f41bf578 100644 --- a/reactos/tools/rbuild/backend/msvc/msvcmaker.cpp +++ b/reactos/tools/rbuild/backend/msvc/msvcmaker.cpp @@ -20,6 +20,7 @@ MSVCBackend::_generate_dsp ( const Module& module ) const bool wine = false; string dsp_file = DspFileName(module); + printf ( "Creating MSVC project: '%s'\n", dsp_file.c_str() ); FILE* OUT = fopen ( dsp_file.c_str(), "w" ); vector imports; @@ -553,9 +554,9 @@ MSVCBackend::_generate_dsp ( const Module& module ) fprintf ( OUT, "\n" ); fprintf ( OUT, "# PROP Default_Filter \"cpp;c;cxx;rc;def;r;odl;idl;hpj;bat\"\n" ); - for ( i = 0; i < source_files.size(); i++ ) + for ( size_t isrcfile = 0; isrcfile < source_files.size(); isrcfile++ ) { - string source_file = DosSeparator(source_files[i]); + string source_file = DosSeparator(source_files[isrcfile]); if ( strncmp ( source_file.c_str(), ".\\", 2 ) ) {