[Scummvm-cvs-logs] SF.net SVN: scummvm: [30274] tools/branches/branch-0-11-0/extract_mm_nes.c

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Sun Jan 6 00:38:45 CET 2008


Revision: 30274
          http://scummvm.svn.sourceforge.net/scummvm/?rev=30274&view=rev
Author:   thebluegr
Date:     2008-01-05 15:38:45 -0800 (Sat, 05 Jan 2008)

Log Message:
-----------
Cleanup (sync with trunk)

Modified Paths:
--------------
    tools/branches/branch-0-11-0/extract_mm_nes.c

Modified: tools/branches/branch-0-11-0/extract_mm_nes.c
===================================================================
--- tools/branches/branch-0-11-0/extract_mm_nes.c	2008-01-05 23:27:07 UTC (rev 30273)
+++ tools/branches/branch-0-11-0/extract_mm_nes.c	2008-01-05 23:38:45 UTC (rev 30274)
@@ -25,7 +25,7 @@
 
 /* if defined, generates a set of .LFL files */
 /* if not defined, dumps all resources to separate files */
-#define	MAKE_LFLS
+#define MAKE_LFLS
 
 #ifdef MAKE_LFLS
 void writeByteAlt(FILE *fp, uint8 b) {
@@ -1058,8 +1058,8 @@
 }
 #endif	/* MAKE_LFLS */
 
-uint32	CRCtable[256];
-void	InitCRC(void) {
+static uint32	CRCtable[256];
+static void InitCRC(void) {
 	const uint32 poly = 0xEDB88320;
 	int i, j;
 	uint32 n;
@@ -1070,7 +1070,7 @@
 		CRCtable[i] = n;
 	}
 }
-uint32	CheckROM(FILE *file) {
+static uint32 CheckROM(FILE *file) {
 	uint32 CRC = 0xFFFFFFFF;
 	uint32 i;
 
@@ -1080,7 +1080,7 @@
 	return CRC ^ 0xFFFFFFFF;
 }
 
-int main (int argc, char **argv) {
+int main(int argc, char **argv) {
 	FILE *input, *output;
 	char fname[256];
 	int i, j;
@@ -1133,10 +1133,11 @@
 		error("Maniac Mansion (Japan) is not supported");
 		break;
 	default:
-		error("ROM contents not recognized (%08X)",CRC);
+		error("ROM contents not recognized (%08X)", CRC);
 		break;
 	}
-#ifdef	MAKE_LFLS
+
+#ifdef MAKE_LFLS
 	memset(&lfl_index, 0, sizeof(lfl_index));
 
 	for (i = 0; lfls[i].num != -1; i++) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list