# HG changeset patch # User Tuomo Valkonen # Date 1169409775 -3600 # Node ID abbac137bdac3976dd70534e664b07eaa557a22a # Parent 76174c5f04b5fa6e3e2167d0e57d86acf8cfc3ca Added stringstore_ref diff -r 76174c5f04b5 -r abbac137bdac stringstore.c --- a/stringstore.c Tue Oct 17 00:32:05 2006 +0200 +++ b/stringstore.c Sun Jan 21 21:02:55 2007 +0100 @@ -96,3 +96,12 @@ } } + +void stringstore_ref(StringId id) +{ + Rb_node node=(Rb_node)id; + + if(node!=NULL) + node->v.ival++; +} + diff -r 76174c5f04b5 -r abbac137bdac stringstore.h --- a/stringstore.h Tue Oct 17 00:32:05 2006 +0200 +++ b/stringstore.h Sun Jan 21 21:02:55 2007 +0100 @@ -18,5 +18,6 @@ extern StringId stringstore_find(const char *str); extern StringId stringstore_alloc(const char *str); extern void stringstore_free(StringId id); +extern void stringstore_ref(StringId id); #endif /* LIBTU_STRINGSTORE_H */