[Scummvm-cvs-logs] SF.net SVN: scummvm: [22450] residual/trunk/main.cpp

aquadran at users.sourceforge.net aquadran at users.sourceforge.net
Sat May 13 09:28:56 CEST 2006


Revision: 22450
Author:   aquadran
Date:     2006-05-13 09:17:54 -0700 (Sat, 13 May 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22450&view=rev

Log Message:
-----------
formating

Modified Paths:
--------------
    residual/trunk/main.cpp
Modified: residual/trunk/main.cpp
===================================================================
--- residual/trunk/main.cpp	2006-05-13 16:15:19 UTC (rev 22449)
+++ residual/trunk/main.cpp	2006-05-13 16:17:54 UTC (rev 22450)
@@ -119,19 +119,18 @@
 			int level;
 			
 			sscanf(argv[i], "%*[^=]%*1s%s", debugtxt);
-			for(j=0;j<strlen(debugtxt);j++) {
-				if(!isdigit(debugtxt[j]))
+			for (j = 0;j < strlen(debugtxt); j++) {
+				if (!isdigit(debugtxt[j]))
 					numeric = false;
 			}
-			if(numeric) {
+			if (numeric) {
 				sscanf(debugtxt, "%d", &level);
-				if(level < 0 || level > DEBUG_ALL)
+				if (level < 0 || level > DEBUG_ALL)
 					goto needshelp;
 			} else {
 				level = -1;
-				for(j=0;j<=DEBUG_ALL;j++)
-				{
-					if(!strcasecmp(debugtxt, debug_levels[j])) {
+				for (j = 0; j <= DEBUG_ALL; j++) {
+					if (!strcasecmp(debugtxt, debug_levels[j])) {
 						level = j;
 						break;
 					}
@@ -152,7 +151,7 @@
 			printf("\t-[no]fullscreen\t\tEnable/disable fullscreen mode at startup\n");
 			printf("\t-[no]soft\t\tEnable/disable software renderer\n");
 			printf("\t-debug=[level]\t\tSet debug to [level], valid levels:\n");
-			for(j=0;j<=DEBUG_ALL;j++)
+			for (j = 0;j <= DEBUG_ALL; j++)
 				printf("\t\t%-8s (%d): %s.\n", debug_levels[j], j, debug_descriptions[j]);
 			exit(-1);
 		}


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