Renamed cw_str to cw_strlist_elem.

FossilOrigin-Name: eb87e178a02fd3daebd4d168489a4e5c99be67602caa8ea50d5b6702a4d13005
This commit is contained in:
7u83@mail.ru
2015-10-18 07:49:14 +00:00
parent 2704f537e4
commit 0b39c92a79
20 changed files with 50 additions and 41 deletions

View File

@ -11,12 +11,12 @@ typedef struct avltree * cw_strheap_t;
extern cw_strheap_t cw_strheap_create();
extern int cw_strheap_register_strings(cw_strheap_t h, struct cw_str *s);
extern int cw_strheap_register_strings(cw_strheap_t h, struct cw_strlist_elem *s);
static inline const char * cw_strheap_get(cw_strheap_t h, int id) {
struct cw_str s;
struct cw_strlist_elem s;
s.id=id;
struct cw_str *r = avltree_get(h,&s);
struct cw_strlist_elem *r = avltree_get(h,&s);
if (r)
return r->str;
return NULL;