X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fld65%2Fspool.c;h=d5ce7fe130075c21a71e3b828f11ec36e9d3cee7;hb=35e1184901ca38bdb2e56d154ed3b71f6096eacc;hp=9afb00f4dbcf4349e5208d0ef83643d441705168;hpb=9174f65e541b4e1008d40ff2b86db849b2086065;p=cc65 diff --git a/src/ld65/spool.c b/src/ld65/spool.c index 9afb00f4d..d5ce7fe13 100644 --- a/src/ld65/spool.c +++ b/src/ld65/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 */ @@ -44,7 +44,7 @@ -StringPool StrPool = STATIC_STRINGPOOL_INITIALIZER; +StringPool* StrPool = 0; @@ -57,10 +57,13 @@ StringPool StrPool = STATIC_STRINGPOOL_INITIALIZER; void InitStrPool (void) /* Initialize the string pool */ { + /* Allocate a string pool */ + StrPool = NewStringPool (1103); + /* We insert a first string here, which will have id zero. This means * that we can treat index zero later as invalid. - */ - SP_AddStr (&StrPool, ""); + */ + SP_AddStr (StrPool, ""); }