]> Shamusworld >> Repos - rmac/blobdiff - rmac.c
.incbin now uses the same directory sets as .include. Also some small cosmetic fixes.
[rmac] / rmac.c
diff --git a/rmac.c b/rmac.c
index 45cd1d8f0532ff69347de1979fa1e6ed3da18f69..4e8234603be2f6f85a61d1fe69fc06630d353651 100644 (file)
--- a/rmac.c
+++ b/rmac.c
@@ -176,34 +176,36 @@ void DisplayVersion(void)
 //
 int ParseOptimization(char * optstring)
 {
-    int onoff = 0;
-
-    if (*optstring == '+')
-        onoff = 1;
-    else if (*optstring != '~')
-        return ERROR;
-
-    if ((optstring[2] == 'a' || optstring[2] == 'A') &&
-        (optstring[3] == 'l' || optstring[3] == 'L') &&
-        (optstring[4] == 'l' || optstring[4] == 'L'))
-    {
-        memset(optim_flags, onoff, OPT_COUNT * sizeof(int));
-        return OK;
-    }
-    else if (optstring[1] == 'o' || optstring[1] == 'O') //Turn on specific optimisation
+       int onoff = 0;
+
+       if (*optstring == '+')
+               onoff = 1;
+       else if (*optstring != '~')
+               return ERROR;
+
+       if ((optstring[2] == 'a' || optstring[2] == 'A')
+               && (optstring[3] == 'l' || optstring[3] == 'L')
+               && (optstring[4] == 'l' || optstring[4] == 'L'))
+       {
+               memset(optim_flags, onoff, OPT_COUNT * sizeof(int));
+               return OK;
+       }
+       else if (optstring[1] == 'o' || optstring[1] == 'O') // Turn on specific optimisation
        {
-        int opt_no = atoi(&optstring[2]);
-        if ((opt_no >= 0) && (opt_no < OPT_COUNT))
-            optim_flags[opt_no] = onoff;
-        else
-        {
-            return ERROR;
-        }
-    }
-    else
-    {
-        return ERROR;
-    }
+               int opt_no = atoi(&optstring[2]);
+
+               if ((opt_no >= 0) && (opt_no < OPT_COUNT))
+               {
+                       optim_flags[opt_no] = onoff;
+                       return OK;
+               }
+               else
+                       return ERROR;
+       }
+       else
+       {
+               return ERROR;
+       }
 }