From 31fdec2e2eb4d89574b1142d68495259e1b72da4 Mon Sep 17 00:00:00 2001 From: AIDA Shinra Date: Mon, 25 Jun 2018 23:50:46 +0900 Subject: [PATCH] Style fix --- src/da65/scanner.c | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) 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 */ { -- 2.39.5