1
0
mirror of https://github.com/cc65/cc65.git synced 2024-09-28 10:55:43 +00:00

Fixed some sloopy StrBuf coding.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4343 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2009-10-08 10:51:45 +00:00
parent 4b4a9b444b
commit 9971b645a5
2 changed files with 3 additions and 3 deletions

View File

@ -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 */

View File

@ -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 */