/* Current input variables */
static CharSource* Source = 0; /* Current char source */
-static unsigned FCount = 0; /* Count of input files */
-static int C = 0; /* Current input character */
+static unsigned FCount = 0; /* Count of input files */
+static int C = 0; /* Current input character */
/* Force end of assembly */
int ForcedEnd = 0;
void NextRawTok (void)
/* Read the next raw token from the input stream */
{
- Macro* M;
+ Macro* M;
/* If we've a forced end of assembly, don't read further */
if (ForcedEnd) {
if (InputFromStack ()) {
if (CurTok.Tok == TOK_IDENT && (M = FindDefine (&CurTok.SVal)) != 0) {
/* This is a define style macro - expand it */
- MacExpandStart (M);
+ MacExpandStart (M);
goto Restart;
}
return;
SB_Clear (&CurTok.SVal);
/* Generate line info for the current token */
- GenLineInfo (LI_SLOT_ASM, &CurTok.Pos);
+ NewAsmLine ();
/* Hex number or PC symbol? */
if (C == '$') {
CurTok.IVal = 0;
}
CurTok.IVal = (CurTok.IVal << 1) + DigitVal (C);
- NextChar ();
+ NextChar ();
}
/* This is an integer constant */
break;
default:
- break;
+ break;
}
} else if (CPU == CPU_SWEET16 &&
NextChar ();
switch (C) {
- case ':':
+ case ':':
NextChar ();
CurTok.Tok = TOK_NAMESPACE;
break;
case '#':
NextChar ();
CurTok.Tok = TOK_HASH;
- return;
+ return;
case '(':
NextChar ();
}
CurTok.IVal = C;
CurTok.Tok = TOK_CHARCON;
- NextChar ();
+ NextChar ();
if (C != '\'') {
if (!MissingCharTerm) {
Error ("Illegal character constant");