mirror of
https://github.com/cc65/cc65.git
synced 2025-08-13 08:25:28 +00:00
Style fix
This commit is contained in:
@@ -163,6 +163,8 @@ static void SkipBlanks (int SingleLine)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static long GetDecimalToken (void)
|
static long GetDecimalToken (void)
|
||||||
{
|
{
|
||||||
long Value = 0;
|
long Value = 0;
|
||||||
@@ -174,7 +176,9 @@ static long GetDecimalToken (void)
|
|||||||
return Value;
|
return Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int GetEncodedChar (char *Buf, unsigned *IPtr, unsigned Size)
|
|
||||||
|
|
||||||
|
static int GetEncodedChar (char* Buf, unsigned* IPtr, unsigned Size)
|
||||||
{
|
{
|
||||||
char Decoded = 0;
|
char Decoded = 0;
|
||||||
int Count;
|
int Count;
|
||||||
@@ -207,11 +211,11 @@ static int GetEncodedChar (char *Buf, unsigned *IPtr, unsigned Size)
|
|||||||
} else {
|
} else {
|
||||||
switch (C) {
|
switch (C) {
|
||||||
case '"': case '\'': case '\\':
|
case '"': case '\'': case '\\':
|
||||||
Decoded = C; break;
|
Decoded = C; break;
|
||||||
case 't': Decoded = '\t'; break;
|
case 't': Decoded = '\t'; break;
|
||||||
case 'r': Decoded = '\r'; break;
|
case 'r': Decoded = '\r'; break;
|
||||||
case 'n': Decoded = '\n'; break;
|
case 'n': Decoded = '\n'; break;
|
||||||
default: return -1;
|
default: return -1;
|
||||||
}
|
}
|
||||||
NextChar ();
|
NextChar ();
|
||||||
}
|
}
|
||||||
@@ -223,9 +227,11 @@ Store:
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static void LineMarkerOrComment ()
|
static void LineMarkerOrComment ()
|
||||||
/* Handle a line beginning with '#'. Possible interpretations are:
|
/* Handle a line beginning with '#'. Possible interpretations are:
|
||||||
** - #line <lineno> ["<filename>"] (C preprocessor input)
|
** - #line <lineno> ["<filename>"] (C preprocessor input)
|
||||||
** - # <lineno> "<filename>" [<flag>]... (gcc preprocessor output)
|
** - # <lineno> "<filename>" [<flag>]... (gcc preprocessor output)
|
||||||
** - #<comment>
|
** - #<comment>
|
||||||
*/
|
*/
|
||||||
@@ -312,6 +318,8 @@ Last:
|
|||||||
SB_Done (&SrcNameBuf);
|
SB_Done (&SrcNameBuf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void InfoNextTok (void)
|
void InfoNextTok (void)
|
||||||
/* Read the next token from the input stream */
|
/* Read the next token from the input stream */
|
||||||
{
|
{
|
||||||
@@ -417,7 +425,7 @@ Again:
|
|||||||
if (C != '\"') {
|
if (C != '\"') {
|
||||||
InfoError ("Unterminated string");
|
InfoError ("Unterminated string");
|
||||||
}
|
}
|
||||||
NextChar ();
|
NextChar ();
|
||||||
InfoTok = INFOTOK_STRCON;
|
InfoTok = INFOTOK_STRCON;
|
||||||
break;
|
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 ()
|
int InfoAvail ()
|
||||||
/* Return true if we have an info file given */
|
/* Return true if we have an info file given */
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user