Lines Matching refs:strs
17 struct comm_str **strs; member
29 _comm_strs.strs = calloc(16, sizeof(*_comm_strs.strs)); in comm_strs__init()
109 entry = bsearch(comm_str__str(cs), comm_strs->strs, comm_strs->num_strs, in comm_strs__remove_if_last()
112 for (int i = entry - comm_strs->strs; i < comm_strs->num_strs - 1; i++) in comm_strs__remove_if_last()
113 comm_strs->strs[i] = comm_strs->strs[i + 1]; in comm_strs__remove_if_last()
123 result = bsearch(str, comm_strs->strs, comm_strs->num_strs, sizeof(struct comm_str *), in __comm_strs__find()
152 tmp = reallocarray(comm_strs->strs, in comm_strs__findnew()
154 sizeof(*comm_strs->strs)); in comm_strs__findnew()
159 comm_strs->strs = tmp; in comm_strs__findnew()
169 int cmp = strcmp(comm_str__str(comm_strs->strs[mid]), str); in comm_strs__findnew()
178 memmove(&comm_strs->strs[insert + 1], &comm_strs->strs[insert], in comm_strs__findnew()
181 comm_strs->strs[insert] = result; in comm_strs__findnew()