Hi,
License: X11
ChangeLog:
Jon Griffiths <jon_p_griffiths@yahoo.com>
+tools/winebuild/res32.c
Remove redundant multiple calls to fprintf()
=====
"Don't wait for the seas to part, or messiahs to come;
Don't you sit around and waste this chance..." - Live
jon_p_griffiths@yahoo.com
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
diff -u wine/tools/winebuild/res32.c wine-develop2/tools/winebuild/res32.c
--- wine/tools/winebuild/res32.c Sat Apr 26 19:33:26 2003
+++ wine-develop2/tools/winebuild/res32.c Thu May 29 00:35:53 2003
@@ -326,25 +326,25 @@
/* directory structures */
- fprintf( outfile, "struct res_dir {\n" );
- fprintf( outfile, " unsigned int Characteristics;\n" );
- fprintf( outfile, " unsigned int TimeDateStamp;\n" );
- fprintf( outfile, " unsigned short MajorVersion, MinorVersion;\n" );
- fprintf( outfile, " unsigned short NumerOfNamedEntries, NumberOfIdEntries;\n};\n\n" );
- fprintf( outfile, "struct res_dir_entry {\n" );
- fprintf( outfile, " unsigned int Name;\n" );
- fprintf( outfile, " unsigned int OffsetToData;\n};\n\n" );
- fprintf( outfile, "struct res_data_entry {\n" );
- fprintf( outfile, " const unsigned int *OffsetToData;\n" );
- fprintf( outfile, " unsigned int Size;\n" );
- fprintf( outfile, " unsigned int CodePage;\n" );
- fprintf( outfile, " unsigned int ResourceHandle;\n};\n\n" );
+ fprintf( outfile, "struct res_dir {\n"
+ " unsigned int Characteristics;\n"
+ " unsigned int TimeDateStamp;\n"
+ " unsigned short MajorVersion, MinorVersion;\n"
+ " unsigned short NumerOfNamedEntries, NumberOfIdEntries;\n};\n\n"
+ "struct res_dir_entry {\n"
+ " unsigned int Name;\n"
+ " unsigned int OffsetToData;\n};\n\n"
+ "struct res_data_entry {\n"
+ " const unsigned int *OffsetToData;\n"
+ " unsigned int Size;\n"
+ " unsigned int CodePage;\n"
+ " unsigned int ResourceHandle;\n};\n\n" );
/* resource directory definition */
- fprintf( outfile, "#define OFFSETOF(field) ((char*)&((struct res_struct *)0)->field - (char*)((struct res_struct *) 0))\n" );
- fprintf( outfile, "static struct res_struct{\n" );
- fprintf( outfile, " struct res_dir type_dir;\n" );
+ fprintf( outfile, "#define OFFSETOF(field) ((char*)&((struct res_struct *)0)->field - (char*)((struct res_struct *) 0))\n"
+ "static struct res_struct{\n"
+ " struct res_dir type_dir;\n" );
fprintf( outfile, " struct res_dir_entry type_entries[%d];\n", nb_types );
for (i = 0, type = res_types; i < nb_types; i++, type++)