From: uz Date: Thu, 8 Oct 2009 10:51:45 +0000 (+0000) Subject: Fixed some sloopy StrBuf coding. X-Git-Tag: V2.13.1~179 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9971b645a5eeb6fac3a46acf36c45199f735a192;p=cc65 Fixed some sloopy StrBuf coding. git-svn-id: svn://svn.cc65.org/cc65/trunk@4343 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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 */