Lines Matching refs:eu
36 int32_t eu; /* Entries used (including deleted). */ member
53 array->eu = 0; in dba_array_new()
69 for (ie = 0; ie < array->eu; ie++) in dba_array_free()
81 assert(ie <= array->eu); in dba_array_set()
82 if (ie == array->eu) in dba_array_set()
83 array->eu++; in dba_array_set()
93 if (array->eu == array->ea) { in dba_array_add()
101 dba_array_set(array, array->eu, entry); in dba_array_add()
107 if (ie < 0 || ie >= array->eu || array->em[ie] == -1) in dba_array_get()
115 array->ec = array->eu; in dba_array_start()
121 if (array->ec < array->eu) in dba_array_next()
125 while (array->ec < array->eu && array->em[array->ec] == -1) in dba_array_next()
127 return array->ec < array->eu ? array->ep[array->ec] : NULL; in dba_array_next()
133 if (array->ec < array->eu && array->em[array->ec] != -1) { in dba_array_del()
142 memset(array->em, 0, sizeof(*array->em) * array->eu); in dba_array_undel()
161 qsort(array->ep, array->eu, sizeof(*array->ep), func); in dba_array_sort()
167 dba_int_write(array->eu - array->ed); in dba_array_writelen()
168 return dba_skip(nmemb, array->eu - array->ed); in dba_array_writelen()
177 for (ie = 0; ie < array->eu; ie++) in dba_array_writepos()