diff --git a/src/ca65/spool.c b/src/ca65/spool.c index 0b77ef615..0cf829c06 100644 --- a/src/ca65/spool.c +++ b/src/ca65/spool.c @@ -6,10 +6,10 @@ /* */ /* */ /* */ -/* (C) 2003 Ullrich von Bassewitz */ -/* Römerstrasse 52 */ -/* D-70794 Filderstadt */ -/* EMail: uz@cc65.org */ +/* (C) 2003-2011, Ullrich von Bassewitz */ +/* Roemerstrasse 52 */ +/* D-70794 Filderstadt */ +/* EMail: uz@cc65.org */ /* */ /* */ /* This software is provided 'as-is', without any expressed or implied */ @@ -83,7 +83,11 @@ void WriteStrPool (void) void InitStrPool (void) /* Initialize the string pool */ { + /* Create a string pool */ StrPool = NewStringPool (1103); + + /* Insert an empty string. It will have string id 0 */ + SP_AddStr (StrPool, ""); } diff --git a/src/ca65/spool.h b/src/ca65/spool.h index 050e63abb..d20b3014b 100644 --- a/src/ca65/spool.h +++ b/src/ca65/spool.h @@ -6,10 +6,10 @@ /* */ /* */ /* */ -/* (C) 2003 Ullrich von Bassewitz */ -/* Römerstrasse 52 */ -/* D-70794 Filderstadt */ -/* EMail: uz@cc65.org */ +/* (C) 2003-2011, Ullrich von Bassewitz */ +/* Roemerstrasse 52 */ +/* D-70794 Filderstadt */ +/* EMail: uz@cc65.org */ /* */ /* */ /* 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;