]> git.sur5r.net Git - cc65/blobdiff - src/ld65/spool.c
New module strstack
[cc65] / src / ld65 / spool.c
index d21b6e52bbfff6df3dbc70d6911162ecd65368ce..c6e4b83cb38844204e7809e4d43617ade39f2107 100644 (file)
@@ -54,3 +54,15 @@ StringPool StrPool = STATIC_STRINGPOOL_INITIALIZER;
 
 
 
+void InitStrPool (void)
+/* Initialize the string pool */
+{
+    /* We insert a first string here, which will have id zero. This means 
+     * that we can treat index zero later as invalid.
+     */
+    SP_Add (&StrPool, "<invalid message #0>");
+}
+
+
+
+