X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcc65%2Flitpool.h;h=99fd27bfbe15c0fda7d2ce18a8b8bb6b68a0c5d4;hb=3f4096d3030095605f28b4cfa73563c53a563df6;hp=e9ad3c5cb1f3cc24238630e7984dae2391dee286;hpb=239cbdcb2b601871dfcb96757f0a2e3b78b48a79;p=cc65 diff --git a/src/cc65/litpool.h b/src/cc65/litpool.h index e9ad3c5cb..99fd27bfb 100644 --- a/src/cc65/litpool.h +++ b/src/cc65/litpool.h @@ -40,10 +40,13 @@ #include +/* common */ +#include "strbuf.h" + /*****************************************************************************/ -/* Data */ +/* Data */ /*****************************************************************************/ @@ -88,6 +91,11 @@ unsigned AddLiteral (const char* S); const char* GetLiteral (unsigned Offs); /* Get a pointer to the literal with the given offset in the pool */ +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 */