/* */
/* */
/* */
-/* (C) 1998 Ullrich von Bassewitz */
-/* Wacholderweg 14 */
-/* D-70597 Stuttgart */
-/* EMail: uz@musoftware.de */
+/* (C) 1998-2001 Ullrich von Bassewitz */
+/* Wacholderweg 14 */
+/* D-70597 Stuttgart */
+/* EMail: uz@cc65.org */
/* */
/* */
/* This software is provided 'as-is', without any expressed or implied */
+#include <stdio.h>
+
+/* common */
+#include "strbuf.h"
+
+
+
/*****************************************************************************/
-/* Data */
+/* Data */
/*****************************************************************************/
-extern unsigned LiteralLabel; /* Pool asm label */
+extern unsigned LiteralPoolLabel; /* Pool asm label */
/*****************************************************************************/
-/* Code */
+/* Code */
/*****************************************************************************/
+void InitLiteralPool (void);
+/* Initialize the literal pool */
+
void TranslateLiteralPool (unsigned Offs);
/* Translate the literals starting from the given offset into the target
* charset.
void DumpLiteralPool (void);
/* Dump the literal pool */
-unsigned GetLiteralOffs (void);
+unsigned GetLiteralPoolOffs (void);
/* Return the current offset into the literal pool */
-void ResetLiteralOffs (unsigned Offs);
+void ResetLiteralPoolOffs (unsigned Offs);
/* Reset the offset into the literal pool to some earlier value, effectively
* removing values from the pool.
*/
const char* GetLiteral (unsigned Offs);
/* Get a pointer to the literal with the given offset in the pool */
-void PrintLiteralStats (FILE* F);
+void GetLiteralStrBuf (StrBuf* Target, unsigned Offs);
+/* Copy the string starting at Offs and lasting to the end of the buffer
+ * into Target.
+ */
+
+void PrintLiteralPoolStats (FILE* F);
/* Print statistics about the literal space used */
+