Author: janderwald
Date: Thu Nov 30 14:24:46 2006
New Revision: 24990
URL:
http://svn.reactos.org/svn/reactos?rev=24990&view=rev
Log:
- silence debug prints
- create new generated file with _msvc postfix
Modified:
trunk/reactos/tools/fixdef/fixdef.cpp
Modified: trunk/reactos/tools/fixdef/fixdef.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/fixdef/fixdef.cpp?re…
==============================================================================
--- trunk/reactos/tools/fixdef/fixdef.cpp (original)
+++ trunk/reactos/tools/fixdef/fixdef.cpp Thu Nov 30 14:24:46 2006
@@ -215,7 +215,7 @@
bool convertFile(string filename, vector<string> & file)
{
bool modified = false;
- cerr << "entered with: "<< filename << " size: "
<< file.size () << endl;
+ //cerr << "entered with: "<< filename << " size: "
<< file.size () << endl;
for(size_t i = 0; i < file.size(); i++)
{
@@ -251,9 +251,8 @@
modified = true;
remove_stdcall_convention(line);
}
- cout << line;
- }
- exit(0);
+ //cout << line;
+ }
return modified;
}
@@ -296,12 +295,15 @@
{
vector<string> file;
file.clear ();
- if (readFile(def_files[i], file))
- {
- if (convertFile(def_files[i], file))
- {
- writeFile(def_files[i], file);
- }
+ string filename = def_files[i];
+
+
+ if (readFile(filename, file))
+ {
+ convertFile(filename, file);
+ filename.insert (filename.find(_T(".")), _T("_msvc"));
+ cout << "Writing file: " << filename << endl;
+ writeFile(filename, file);
}
}