mirror of
https://github.com/cc65/cc65.git
synced 2025-01-12 02:30:44 +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:
parent
4b4a9b444b
commit
9971b645a5
@ -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 */
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user