diff --git a/src/ca65/macro.c b/src/ca65/macro.c index 704ed5d6f..68ecda6f6 100644 --- a/src/ca65/macro.c +++ b/src/ca65/macro.c @@ -203,7 +203,7 @@ static IdDesc* NewIdDesc (const StrBuf* Id) /* Initialize the struct */ I->Next = 0; - I->Id = AUTO_STRBUF_INITIALIZER; + SB_Init (&I->Id); SB_Copy (&I->Id, Id); /* Return the new struct */ @@ -228,7 +228,7 @@ static Macro* NewMacro (const StrBuf* Name, unsigned char Style) M->TokRoot = 0; M->TokLast = 0; M->Style = Style; - M->Name = AUTO_STRBUF_INITIALIZER; + SB_Init (&M->Name); SB_Copy (&M->Name, Name); /* Insert the macro into the global macro list */ diff --git a/src/ca65/toklist.c b/src/ca65/toklist.c index 1af5a06d6..0f8062dcc 100644 --- a/src/ca65/toklist.c +++ b/src/ca65/toklist.c @@ -67,7 +67,7 @@ TokNode* NewTokNode (void) T->Tok = Tok; T->WS = WS; T->IVal = IVal; - T->SVal = AUTO_STRBUF_INITIALIZER; + SB_Init (&T->SVal); SB_Copy (&T->SVal, &SVal); /* Return the node */