Lines Matching refs:strs
19 struct comm_str **strs; member
32 _comm_strs.strs = calloc(16, sizeof(*_comm_strs.strs)); in comm_strs__init()
112 entry = bsearch(comm_str__str(cs), comm_strs->strs, comm_strs->num_strs, in comm_strs__remove_if_last()
115 for (int i = entry - comm_strs->strs; i < comm_strs->num_strs - 1; i++) in comm_strs__remove_if_last()
116 comm_strs->strs[i] = comm_strs->strs[i + 1]; in comm_strs__remove_if_last()
127 result = bsearch(str, comm_strs->strs, comm_strs->num_strs, sizeof(struct comm_str *), in __comm_strs__find()
156 tmp = reallocarray(comm_strs->strs, in comm_strs__findnew()
158 sizeof(*comm_strs->strs)); in comm_strs__findnew()
163 comm_strs->strs = tmp; in comm_strs__findnew()
173 int cmp = strcmp(comm_str__str(comm_strs->strs[mid]), str); in comm_strs__findnew()
182 memmove(&comm_strs->strs[insert + 1], &comm_strs->strs[insert], in comm_strs__findnew()
185 comm_strs->strs[insert] = result; in comm_strs__findnew()