[Scummvm-cvs-logs] CVS: tools md5table.c,1.6,1.7
Max Horn
fingolfin at users.sourceforge.net
Sat Feb 7 08:11:03 CET 2004
Update of /cvsroot/scummvm/tools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16232
Modified Files:
md5table.c
Log Message:
fix PHP output
Index: md5table.c
===================================================================
RCS file: /cvsroot/scummvm/tools/md5table.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- md5table.c 7 Feb 2004 15:58:36 -0000 1.6
+++ md5table.c 7 Feb 2004 16:07:15 -0000 1.7
@@ -77,12 +77,15 @@
{ 0, "UNK_LANG" }
};
-static const char *legal_header =
- "/* This file was generated by the md5table tool. DO NOT EDIT!\n"
- " */\n"
+static const char *php_header =
+ "<!-- This file was generated by the md5table tool. DO NOT EDIT!\n"
+ " -->\n"
"\n";
static const char *c_header =
+ "/* This file was generated by the md5table tool. DO NOT EDIT!\n"
+ " */\n"
+ "\n"
"struct MD5Table {\n"
" const char *md5;\n"
" const char *target;\n"
@@ -166,7 +169,8 @@
showhelp(argv[0]);
}
- fprintf(outFile, legal_header);
+ if (phpOutput)
+ fprintf(outFile, php_header);
while ((line = fgets(buffer, sizeof(buffer), inFile))) {
/* Parse line */
More information about the Scummvm-git-logs
mailing list