X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fda65%2Fasminc.c;h=079b751badc6617c8b92fd59cbd9db46f1e77844;hb=85885001b133e2dc320b6f6459259afa69784ca8;hp=22e1ff3870b9111d723a9ba0b89b7ee9b63a58c4;hpb=44fd1082ae807a0b6b4046c65914e20a7e27101c;p=cc65 diff --git a/src/da65/asminc.c b/src/da65/asminc.c index 22e1ff387..079b751ba 100644 --- a/src/da65/asminc.c +++ b/src/da65/asminc.c @@ -49,7 +49,7 @@ /*****************************************************************************/ -/* Code */ +/* Code */ /*****************************************************************************/ @@ -84,7 +84,7 @@ void AsmInc (const char* Filename, char CommentStart, int IgnoreUnknown) char* L; const char* Comment; unsigned Line; - unsigned Len; + unsigned Len; long Val; unsigned DVal; int Sign; @@ -111,12 +111,12 @@ void AsmInc (const char* Filename, char CommentStart, int IgnoreUnknown) ++L; } - /* Remove trailing whitespace */ - Len = strlen (L); - while (Len > 0 && IsSpace (L[Len-1])) { - --Len; - } - L[Len] = '\0'; + /* Remove trailing whitespace */ + Len = strlen (L); + while (Len > 0 && IsSpace (L[Len-1])) { + --Len; + } + L[Len] = '\0'; /* If the line is empty or starts with a comment char, ignore it */ if (*L == '\0' || *L == CommentStart) { @@ -147,11 +147,11 @@ void AsmInc (const char* Filename, char CommentStart, int IgnoreUnknown) } else if (*L == ':' && *++L == '=') { ++L; } else { - if (!IgnoreUnknown) { - Error ("%s(%u): Missing `='", Filename, Line); - } - continue; - } + if (!IgnoreUnknown) { + Error ("%s(%u): Missing `='", Filename, Line); + } + continue; + } /* Allow white space once again */ L = SkipWhitespace (L);