libcs compiles with -ansi option now
FossilOrigin-Name: afeca48ac2e33dace533047329ea48224ee5e4bfd4e83449f335d0a022a67215
This commit is contained in:
@ -35,3 +35,14 @@ int cw_strheap_register_strings(cw_strheap_t h, struct cw_strlist_elem *s)
|
||||
return n+1;
|
||||
}
|
||||
|
||||
|
||||
const char * cw_strheap_get(cw_strheap_t h, int id) {
|
||||
struct cw_strlist_elem s;
|
||||
s.id=id;
|
||||
struct cw_strlist_elem *r = avltree_get(h,&s);
|
||||
if (r)
|
||||
return r->str;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user