Make AUTO_STRBUF_INITIALIZER identical to STATIC_STRBUF_INITIALIZER.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4342 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
17d592352c
commit
4b4a9b444b
2 changed files with 11 additions and 11 deletions
|
@ -6,7 +6,7 @@
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* (C) 2001-2008 Ullrich von Bassewitz */
|
/* (C) 2001-2009, Ullrich von Bassewitz */
|
||||||
/* Roemerstrasse 52 */
|
/* Roemerstrasse 52 */
|
||||||
/* D-70794 Filderstadt */
|
/* D-70794 Filderstadt */
|
||||||
/* EMail: uz@cc65.org */
|
/* EMail: uz@cc65.org */
|
||||||
|
@ -69,7 +69,7 @@ extern const StrBuf EmptyStrBuf;
|
||||||
#define STATIC_STRBUF_INITIALIZER { 0, 0, 0, 0 }
|
#define STATIC_STRBUF_INITIALIZER { 0, 0, 0, 0 }
|
||||||
|
|
||||||
/* Initializer for auto string bufs */
|
/* Initializer for auto string bufs */
|
||||||
#define AUTO_STRBUF_INITIALIZER EmptyStrBuf
|
#define AUTO_STRBUF_INITIALIZER { 0, 0, 0, 0 }
|
||||||
|
|
||||||
/* Initialize with a string literal (beware: evaluates str twice!) */
|
/* Initialize with a string literal (beware: evaluates str twice!) */
|
||||||
#define LIT_STRBUF_INITIALIZER(str) { (char*)str, sizeof(str)-1, 0, 0 }
|
#define LIT_STRBUF_INITIALIZER(str) { (char*)str, sizeof(str)-1, 0, 0 }
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* (C) 2003-2008 Ullrich von Bassewitz */
|
/* (C) 2003-2009, Ullrich von Bassewitz */
|
||||||
/* Roemerstrasse 52 */
|
/* Roemerstrasse 52 */
|
||||||
/* D-70794 Filderstadt */
|
/* D-70794 Filderstadt */
|
||||||
/* EMail: uz@cc65.org */
|
/* EMail: uz@cc65.org */
|
||||||
|
@ -85,7 +85,7 @@ static StringPoolEntry* NewStringPoolEntry (const StrBuf* S, unsigned Hash, unsi
|
||||||
E->Next = 0;
|
E->Next = 0;
|
||||||
E->Hash = Hash;
|
E->Hash = Hash;
|
||||||
E->Id = Id;
|
E->Id = Id;
|
||||||
E->Buf = AUTO_STRBUF_INITIALIZER;
|
SB_Init (&E->Buf);
|
||||||
SB_Copy (&E->Buf, S);
|
SB_Copy (&E->Buf, S);
|
||||||
|
|
||||||
/* Always zero terminate the string */
|
/* Always zero terminate the string */
|
||||||
|
|
Loading…
Add table
Reference in a new issue