X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcc65%2Fgoto.c;h=33d056f9a1551b70863af7cc976e82c1ddceb92e;hb=98da4b581175232d89630f5c19f22e37a7588c7b;hp=b18637012f8da3c229c6f95600358b433d6ed945;hpb=53dd513176425872128ef26031d00952ef7a0628;p=cc65 diff --git a/src/cc65/goto.c b/src/cc65/goto.c index b18637012..33d056f9a 100644 --- a/src/cc65/goto.c +++ b/src/cc65/goto.c @@ -47,16 +47,16 @@ -void DoGoto (void) +void GotoStatement (void) /* Process a goto statement. */ { /* Eat the "goto" */ - gettok (); + NextToken (); /* Label name must follow */ - if (curtok != IDENT) { + if (CurTok.Tok != TOK_IDENT) { - Error (ERR_IDENT_EXPECTED); + Error ("Label name expected"); } else { @@ -68,7 +68,7 @@ void DoGoto (void) } /* Eat the label name */ - gettok (); + NextToken (); } @@ -80,11 +80,11 @@ void DoLabel (void) 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 */ - gettok (); - gettok (); + NextToken (); + NextToken (); }