mirror of
https://github.com/cc65/cc65.git
synced 2025-02-12 06:30:42 +00:00
Cosmetic changes
git-svn-id: svn://svn.cc65.org/cc65/trunk@1402 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
c723420314
commit
6676e27032
@ -6,7 +6,7 @@
|
|||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* (C) 1998-2001 Ullrich von Bassewitz */
|
/* (C) 1998-2002 Ullrich von Bassewitz */
|
||||||
/* Wacholderweg 14 */
|
/* Wacholderweg 14 */
|
||||||
/* D-70597 Stuttgart */
|
/* D-70597 Stuttgart */
|
||||||
/* EMail: uz@musoftware.de */
|
/* EMail: uz@musoftware.de */
|
||||||
@ -226,7 +226,7 @@ static void UnknownChar (char C)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
static unsigned hexval (int c)
|
static unsigned HexVal (int c)
|
||||||
/* Convert a hex digit into a value */
|
/* Convert a hex digit into a value */
|
||||||
{
|
{
|
||||||
if (!IsXDigit (c)) {
|
if (!IsXDigit (c)) {
|
||||||
@ -301,9 +301,9 @@ static int ParseChar (void)
|
|||||||
case 'X':
|
case 'X':
|
||||||
/* Hex character constant */
|
/* Hex character constant */
|
||||||
NextChar ();
|
NextChar ();
|
||||||
val = hexval (CurC) << 4;
|
val = HexVal (CurC) << 4;
|
||||||
NextChar ();
|
NextChar ();
|
||||||
C = val | hexval (CurC); /* Do not translate */
|
C = val | HexVal (CurC); /* Do not translate */
|
||||||
break;
|
break;
|
||||||
case '0':
|
case '0':
|
||||||
case '1':
|
case '1':
|
||||||
@ -456,7 +456,7 @@ void NextToken (void)
|
|||||||
if (IsDigit (CurC)) {
|
if (IsDigit (CurC)) {
|
||||||
k = k * base + (CurC - '0');
|
k = k * base + (CurC - '0');
|
||||||
} else if (base == 16 && IsXDigit (CurC)) {
|
} else if (base == 16 && IsXDigit (CurC)) {
|
||||||
k = (k << 4) + hexval (CurC);
|
k = (k << 4) + HexVal (CurC);
|
||||||
} else {
|
} else {
|
||||||
break; /* not digit */
|
break; /* not digit */
|
||||||
}
|
}
|
||||||
@ -535,7 +535,7 @@ void NextToken (void)
|
|||||||
/* No reserved word, check for special symbols */
|
/* No reserved word, check for special symbols */
|
||||||
if (token [0] == '_') {
|
if (token [0] == '_') {
|
||||||
/* Special symbols */
|
/* Special symbols */
|
||||||
if (strcmp (token, "__FILE__") == 0) {
|
if (strcmp (token, "__FILE__") == 0) {
|
||||||
NextTok.IVal = AddLiteral (GetCurrentFile());
|
NextTok.IVal = AddLiteral (GetCurrentFile());
|
||||||
NextTok.Tok = TOK_SCONST;
|
NextTok.Tok = TOK_SCONST;
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user