mirror of
https://github.com/cc65/cc65.git
synced 2025-01-12 02:30:44 +00:00
The string with index zero is the first string in the string pool.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5252 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
ac2b837285
commit
f2de523b5d
@ -6,10 +6,10 @@
|
|||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* (C) 2003 Ullrich von Bassewitz */
|
/* (C) 2003-2011, Ullrich von Bassewitz */
|
||||||
/* Römerstrasse 52 */
|
/* Roemerstrasse 52 */
|
||||||
/* D-70794 Filderstadt */
|
/* D-70794 Filderstadt */
|
||||||
/* EMail: uz@cc65.org */
|
/* EMail: uz@cc65.org */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* This software is provided 'as-is', without any expressed or implied */
|
/* This software is provided 'as-is', without any expressed or implied */
|
||||||
@ -83,7 +83,11 @@ void WriteStrPool (void)
|
|||||||
void InitStrPool (void)
|
void InitStrPool (void)
|
||||||
/* Initialize the string pool */
|
/* Initialize the string pool */
|
||||||
{
|
{
|
||||||
|
/* Create a string pool */
|
||||||
StrPool = NewStringPool (1103);
|
StrPool = NewStringPool (1103);
|
||||||
|
|
||||||
|
/* Insert an empty string. It will have string id 0 */
|
||||||
|
SP_AddStr (StrPool, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -6,10 +6,10 @@
|
|||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* (C) 2003 Ullrich von Bassewitz */
|
/* (C) 2003-2011, Ullrich von Bassewitz */
|
||||||
/* Römerstrasse 52 */
|
/* Roemerstrasse 52 */
|
||||||
/* D-70794 Filderstadt */
|
/* D-70794 Filderstadt */
|
||||||
/* EMail: uz@cc65.org */
|
/* EMail: uz@cc65.org */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* This software is provided 'as-is', without any expressed or implied */
|
/* This software is provided 'as-is', without any expressed or implied */
|
||||||
@ -49,6 +49,10 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* The index for an empty string */
|
||||||
|
#define EMPTY_STRING_ID 0U
|
||||||
|
|
||||||
|
/* The string pool */
|
||||||
extern StringPool* StrPool;
|
extern StringPool* StrPool;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user