From: AIDA Shinra Date: Mon, 25 Jun 2018 14:50:46 +0000 (+0900) Subject: Style fix X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=31fdec2e2eb4d89574b1142d68495259e1b72da4;p=cc65 Style fix --- diff --git a/src/da65/scanner.c b/src/da65/scanner.c index a579939f9..143bb2636 100644 --- a/src/da65/scanner.c +++ b/src/da65/scanner.c @@ -163,6 +163,8 @@ static void SkipBlanks (int SingleLine) } } + + static long GetDecimalToken (void) { long Value = 0; @@ -174,7 +176,9 @@ static long GetDecimalToken (void) return Value; } -static int GetEncodedChar (char *Buf, unsigned *IPtr, unsigned Size) + + +static int GetEncodedChar (char* Buf, unsigned* IPtr, unsigned Size) { char Decoded = 0; int Count; @@ -207,11 +211,11 @@ static int GetEncodedChar (char *Buf, unsigned *IPtr, unsigned Size) } else { switch (C) { case '"': case '\'': case '\\': - Decoded = C; break; - case 't': Decoded = '\t'; break; - case 'r': Decoded = '\r'; break; - case 'n': Decoded = '\n'; break; - default: return -1; + Decoded = C; break; + case 't': Decoded = '\t'; break; + case 'r': Decoded = '\r'; break; + case 'n': Decoded = '\n'; break; + default: return -1; } NextChar (); } @@ -223,9 +227,11 @@ Store: return 0; } + + static void LineMarkerOrComment () /* Handle a line beginning with '#'. Possible interpretations are: -** - #line [""] (C preprocessor input) +** - #line [""] (C preprocessor input) ** - # "" []... (gcc preprocessor output) ** - # */ @@ -312,6 +318,8 @@ Last: SB_Done (&SrcNameBuf); } + + void InfoNextTok (void) /* Read the next token from the input stream */ { @@ -417,7 +425,7 @@ Again: if (C != '\"') { InfoError ("Unterminated string"); } - NextChar (); + NextChar (); InfoTok = INFOTOK_STRCON; break; @@ -660,16 +668,6 @@ void InfoSetName (const char* Name) -#ifdef unused -const char* InfoGetName (void) -/* Get the name of the config file */ -{ - return InfoFile? InfoFile : ""; -} -#endif /* unused */ - - - int InfoAvail () /* Return true if we have an info file given */ {