line |
true |
false |
branch |
99
|
0 |
159674 |
Newxz(tbl->tbl_ary, tbl->tbl_max + 1, PTABLE_ENTRY_t*); |
115
|
924326 |
3184496 |
for (; tblent; tblent = tblent->next) { |
116
|
479148 |
445178 |
if (tblent->key == key) |
126
|
479127 |
1592231 |
return tblent ? tblent->value : NULL; |
139
|
0 |
4560 |
Renew(ary, newsize, PTABLE_ENTRY_t*); |
140
|
0 |
4560 |
Zero(&ary[oldsize], newsize - oldsize, PTABLE_ENTRY_t*); |
144
|
111776 |
4560 |
for (i = 0; i < oldsize; i++, ary++) { |
146
|
40413 |
71363 |
if (!*ary) |
149
|
113562 |
71363 |
for (entp = ary, ent = *ary; ent; ent = *entp) { |
150
|
55623 |
57939 |
if ((newsize & PTABLE_HASH(ent->key)) != i) { |
169
|
0 |
1592243 |
if (tblent) { |
180
|
181777 |
1410466 |
if (tblent->next && (tbl->tbl_items > tbl->tbl_max)) |
|
4560 |
177217 |
if (tblent->next && (tbl->tbl_items > tbl->tbl_max)) |
193
|
2717819 |
0 |
if (tbl && tbl->tbl_items) { |
|
771190 |
1946629 |
if (tbl && tbl->tbl_items) { |
200
|
1592228 |
14958328 |
while (entry) { |
212
|
14187138 |
771190 |
} while (riter--); |
221
|
4 |
0 |
if (tbl && tbl->tbl_items) { |
|
4 |
0 |
if (tbl && tbl->tbl_items) { |
228
|
4 |
32 |
while (entry) { |
231
|
4 |
0 |
if (oentry->value) |
242
|
28 |
4 |
} while (riter--); |
256
|
19 |
0 |
if (!tbl || !tbl->tbl_items) { |
|
4 |
15 |
if (!tbl || !tbl->tbl_items) { |
263
|
11 |
4 |
for (; tblent; tblent_prev = tblent, tblent = tblent->next) { |
264
|
11 |
0 |
if (tblent->key == key) { |
265
|
0 |
11 |
if (tblent_prev != NULL) { |
305
|
0 |
18 |
if (flags & PTABLE_FLAG_AUTOCLEAN) |
318
|
0 |
18 |
if (tbl->tbl_items == 0) { |
324
|
0 |
18 |
PTABLE_ITER_NEXT_ELEM(iter, tbl); |
|
0 |
0 |
PTABLE_ITER_NEXT_ELEM(iter, tbl); |
|
0 |
66 |
PTABLE_ITER_NEXT_ELEM(iter, tbl); |
|
48 |
18 |
PTABLE_ITER_NEXT_ELEM(iter, tbl); |
342
|
22 |
18 |
PTABLE_ITER_NEXT_ELEM(iter, tbl); |
|
0 |
22 |
PTABLE_ITER_NEXT_ELEM(iter, tbl); |
|
36 |
78 |
PTABLE_ITER_NEXT_ELEM(iter, tbl); |
|
74 |
4 |
PTABLE_ITER_NEXT_ELEM(iter, tbl); |
352
|
0 |
18 |
if (iter->table->cur_iter == iter) |
374
|
0 |
159674 |
if (!tbl) |
378
|
0 |
159674 |
if (tbl->cur_iter) { |