Sat, 19 Jun 2004 00:13:45 +0200
trunk: changeset 1575
Oops. Forgot stringstore_get.
stringstore.c | file | annotate | diff | comparison | revisions | |
stringstore.h | file | annotate | diff | comparison | revisions |
--- a/stringstore.c Sat Jun 19 00:04:43 2004 +0200 +++ b/stringstore.c Sat Jun 19 00:13:45 2004 +0200 @@ -17,6 +17,12 @@ static Rb_node stringstore=NULL; + +const char *stringstore_get(StringId id) +{ + return (const char*)(((Rb_node)id)->k.key); +} + StringId stringstore_find(const char *str) {
--- a/stringstore.h Sat Jun 19 00:04:43 2004 +0200 +++ b/stringstore.h Sat Jun 19 00:13:45 2004 +0200 @@ -14,6 +14,7 @@ #define STRINGID_NONE ((StringId)0) +extern const char *stringstore_get(StringId id); extern StringId stringstore_find(const char *str); extern StringId stringstore_alloc(const char *str); extern void stringstore_free(StringId id);