X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fca65%2Fenum.c;h=368a7484ab50b37ccf3b0a010f2c839322de04d4;hb=e1866ed9f8d7352427af25aaebc98d16e2e29976;hp=0383cada13a2508123569b0683c23f47e1899fbb;hpb=9ebc3d1f01fd7141bddaa8b04a6f634555abb4a3;p=cc65 diff --git a/src/ca65/enum.c b/src/ca65/enum.c index 0383cada1..368a7484a 100644 --- a/src/ca65/enum.c +++ b/src/ca65/enum.c @@ -6,8 +6,8 @@ /* */ /* */ /* */ -/* (C) 2003 Ullrich von Bassewitz */ -/* Römerstraße 52 */ +/* (C) 2003-2008 Ullrich von Bassewitz */ +/* Roemerstrasse 52 */ /* D-70794 Filderstadt */ /* EMail: uz@cc65.org */ /* */ @@ -59,13 +59,13 @@ void DoEnum (void) { /* Start at zero */ long Offs = 0; - ExprNode* BaseExpr = GenLiteralExpr (0); + ExprNode* BaseExpr = GenLiteral0 (); /* Check for a name */ int Anon = (Tok != TOK_IDENT); if (!Anon) { /* Enter a new scope, then skip the name */ - SymEnterLevel (SVal, ST_ENUM, ADDR_SIZE_ABS); + SymEnterLevel (&SVal, ST_ENUM, ADDR_SIZE_ABS); NextTok (); } @@ -94,7 +94,7 @@ void DoEnum (void) } /* We have an identifier, generate a symbol */ - Sym = SymFind (CurrentScope, SVal, SYM_ALLOC_NEW); + Sym = SymFind (CurrentScope, &SVal, SYM_ALLOC_NEW); /* Skip the member name */ NextTok ();