]> git.sur5r.net Git - cc65/commitdiff
Style and alignment fixes. 681/head
authorAIDA Shinra <shinra@j10n.org>
Wed, 13 Jun 2018 12:24:34 +0000 (21:24 +0900)
committerAIDA Shinra <shinra@j10n.org>
Wed, 13 Jun 2018 12:24:34 +0000 (21:24 +0900)
src/da65/handler.c
src/da65/infofile.c

index a5adb413e2e279f3641a71e224db9ef677f6b024..f8a778b22bba32140566d7bf84ff6d5085f9c6d7 100644 (file)
@@ -748,19 +748,19 @@ void OH_JmpAbsoluteXIndirect (const OpcDesc* D)
 
 void OH_JsrAbsolute (const OpcDesc* D)
 {
-    unsigned ParamSize = SubroutineParamSize[GetCodeWord(PC+1)];
+    unsigned ParamSize = SubroutineParamSize[GetCodeWord (PC+1)];
     OH_Absolute (D);
     if (ParamSize > 0) {
         unsigned RemainingBytes;
-       unsigned BytesLeft;
+        unsigned BytesLeft;
         PC += D->Size;
-        RemainingBytes = GetRemainingBytes();
+        RemainingBytes = GetRemainingBytes ();
         if (RemainingBytes < ParamSize) {
             ParamSize = RemainingBytes;
         }
         BytesLeft = ParamSize;
         while (BytesLeft > 0) {
-            unsigned Chunk = (BytesLeft > BytesPerLine)? BytesPerLine : BytesLeft;
+            unsigned Chunk = (BytesLeft > BytesPerLine) ? BytesPerLine : BytesLeft;
             DataByteLine (Chunk);
             BytesLeft -= Chunk;
             PC        += Chunk;
index c5040e82a12d483ad7661e8983067977f61e83d8..6db82cb362c1f8ac86ac02497aded79370896b2a 100644 (file)
@@ -377,19 +377,19 @@ static void LabelSection (void)
 /* Parse a label section */
 {
     static const IdentTok LabelDefs[] = {
-        {   "COMMENT",  INFOTOK_COMMENT },
-        {   "ADDR",     INFOTOK_ADDR    },
-        {   "NAME",     INFOTOK_NAME    },
-        {   "SIZE",     INFOTOK_SIZE    },
-        {   "PARAMSIZE", INFOTOK_PARAMSIZE },
+        {   "COMMENT",      INFOTOK_COMMENT     },
+        {   "ADDR",         INFOTOK_ADDR        },
+        {   "NAME",         INFOTOK_NAME        },
+        {   "SIZE",         INFOTOK_SIZE        },
+        {   "PARAMSIZE",    INFOTOK_PARAMSIZE   },
     };
 
     /* Locals - initialize to avoid gcc warnings */
-    char* Name    = 0;
-    char* Comment = 0;
-    long Value    = -1;
-    long Size     = -1;
-    long ParamSize = -1;
+    char* Name      = 0;
+    char* Comment   = 0;
+    long Value      = -1;
+    long Size       = -1;
+    long ParamSize  = -1;
 
     /* Skip the token */
     InfoNextTok ();