Lines Matching refs:num_strs
18 int num_strs; member
28 _comm_strs.num_strs = 0; 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()
114 comm_strs->num_strs--; 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()
149 if (comm_strs->num_strs == comm_strs->capacity) { in comm_strs__findnew()
164 int low = 0, high = comm_strs->num_strs - 1; in comm_strs__findnew()
165 int insert = comm_strs->num_strs; /* Default to inserting at the end. */ in comm_strs__findnew()
179 (comm_strs->num_strs - insert) * sizeof(struct comm_str *)); in comm_strs__findnew()
180 comm_strs->num_strs++; in comm_strs__findnew()