added some verbosity
authorRoyce Mitchell III <royce3@ev1.net>
Wed, 24 Aug 2005 20:06:54 +0000 (20:06 +0000)
committerRoyce Mitchell III <royce3@ev1.net>
Wed, 24 Aug 2005 20:06:54 +0000 (20:06 +0000)
standardized back on printf from cout
fixed loop variable conflict

svn path=/trunk/; revision=17518

reactos/tools/rbuild/backend/msvc/msvc.cpp
reactos/tools/rbuild/backend/msvc/msvcmaker.cpp

index b0f8114..9b4c0d1 100644 (file)
@@ -61,7 +61,7 @@ void MSVCBackend::Process()
 \r
        string filename = ProjectNode.name + ".dsw";\r
        \r
-       cout << "Creating MSVC project: " << filename << endl;\r
+       printf ( "Creating MSVC workspace: %s\n", filename.c_str() );\r
 \r
        ProcessModules();\r
 \r
@@ -69,7 +69,7 @@ void MSVCBackend::Process()
 \r
        if ( !m_dswFile )\r
        {\r
-               cout << "Could not open file." << endl;\r
+               printf ( "Could not create file '%s'.\n", filename.c_str() );\r
                return;\r
        }\r
        _generate_wine_dsw ( m_dswFile );\r
@@ -101,7 +101,7 @@ void MSVCBackend::Process()
        // The MSVC build still needs the mingw backend.\r
        //ProcessModules();\r
 \r
-       cout << "Done." << endl << endl;\r
+       printf ( "Done.\n" );\r
 \r
        /*cout << "Don't expect the MSVC backend to work yet. "<< endl << endl;\r
 \r
index 01bb414..149f41b 100644 (file)
@@ -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<string> 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 ) )
                {