/* */
/* */
/* */
-/* (C) 1998-2001 Ullrich von Bassewitz */
+/* (C) 1998-2002 Ullrich von Bassewitz */
/* Wacholderweg 14 */
/* D-70597 Stuttgart */
/* EMail: uz@musoftware.de */
-static unsigned hexval (int c)
+static unsigned HexVal (int c)
/* Convert a hex digit into a value */
{
if (!IsXDigit (c)) {
case 'X':
/* Hex character constant */
NextChar ();
- val = hexval (CurC) << 4;
+ val = HexVal (CurC) << 4;
NextChar ();
- C = val | hexval (CurC); /* Do not translate */
+ C = val | HexVal (CurC); /* Do not translate */
break;
case '0':
case '1':
if (IsDigit (CurC)) {
k = k * base + (CurC - '0');
} else if (base == 16 && IsXDigit (CurC)) {
- k = (k << 4) + hexval (CurC);
+ k = (k << 4) + HexVal (CurC);
} else {
break; /* not digit */
}
/* No reserved word, check for special symbols */
if (token [0] == '_') {
/* Special symbols */
- if (strcmp (token, "__FILE__") == 0) {
+ if (strcmp (token, "__FILE__") == 0) {
NextTok.IVal = AddLiteral (GetCurrentFile());
NextTok.Tok = TOK_SCONST;
return;