trunk: changeset 1575

Sat, 19 Jun 2004 00:13:45 +0200

author
tuomov
date
Sat, 19 Jun 2004 00:13:45 +0200
changeset 74
60cb620a0341
parent 73
401322031c7e
child 75
725a7187c6ff

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);

mercurial