-void DoGoto (void)
+void GotoStatement (void)
/* Process a goto statement. */
{
/* Eat the "goto" */
NextToken ();
/* Label name must follow */
- if (curtok != TOK_IDENT) {
+ if (CurTok.Tok != TOK_IDENT) {
- Error (ERR_IDENT_EXPECTED);
+ Error ("Label name expected");
} else {
SymEntry* Entry = AddLabelSym (CurTok.Ident, SC_DEF);
/* Emit the jump label */
- g_defloclabel (Entry->V.Label);
+ g_defcodelabel (Entry->V.Label);
/* Eat the ident and colon */
NextToken ();