X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcc65%2Fgoto.c;h=33d056f9a1551b70863af7cc976e82c1ddceb92e;hb=b9e04d5242618b83d78016d57b032e2518ddba17;hp=9d29ede34e16723607aa50e7a3719ea6df33c9f8;hpb=e07945e9fce2e454d332e1b239663a930f6f99a6;p=cc65 diff --git a/src/cc65/goto.c b/src/cc65/goto.c index 9d29ede34..33d056f9a 100644 --- a/src/cc65/goto.c +++ b/src/cc65/goto.c @@ -47,14 +47,14 @@ -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 ("Label name expected"); @@ -80,7 +80,7 @@ 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 */ NextToken ();