line |
true |
false |
branch |
13
|
0 |
53 |
if (!ret) { |
26
|
0 |
3 |
if (!ret) { |
39
|
0 |
51 |
if (!ret) { |
55
|
0 |
32 |
assert(buf); |
68
|
0 |
0 |
assert(buf && buf->unit); |
|
0 |
0 |
assert(buf && buf->unit); |
83
|
20 |
0 |
if (!buf) return; |
84
|
20 |
0 |
assert(buf && buf->unit); |
|
0 |
20 |
assert(buf && buf->unit); |
88
|
20 |
0 |
if (buf->buffer_free) |
95
|
0 |
0 |
assert(buf && buf->unit); |
|
0 |
0 |
assert(buf && buf->unit); |
106
|
79 |
0 |
assert(buf && buf->unit); |
|
0 |
79 |
assert(buf && buf->unit); |
108
|
37 |
42 |
if (buf->asize >= neosz) |
112
|
17 |
37 |
while (neoasz < neosz) |
122
|
180 |
0 |
assert(buf && buf->unit); |
|
0 |
180 |
assert(buf && buf->unit); |
124
|
18 |
162 |
if (buf->size + size > buf->asize) |
140
|
55 |
0 |
assert(buf && buf->unit); |
|
0 |
55 |
assert(buf && buf->unit); |
142
|
0 |
55 |
if (buf->size >= buf->asize) |
152
|
0 |
0 |
assert(buf && buf->unit); |
|
0 |
0 |
assert(buf && buf->unit); |
154
|
0 |
0 |
while (!(feof(file) || ferror(file))) { |
|
0 |
0 |
while (!(feof(file) || ferror(file))) { |
165
|
0 |
0 |
assert(buf && buf->unit); |
|
0 |
0 |
assert(buf && buf->unit); |
167
|
0 |
0 |
if (size > buf->asize) |
183
|
0 |
0 |
if (buf->size != size) return 0; |
198
|
1 |
0 |
for (i = 0; i < buf->size; ++i) { |
199
|
1 |
0 |
if (prefix[i] == 0) |
202
|
1 |
0 |
if (buf->data[i] != prefix[i]) |
212
|
0 |
0 |
assert(buf && buf->unit); |
|
0 |
0 |
assert(buf && buf->unit); |
214
|
0 |
0 |
if (size >= buf->size) { |
226
|
7 |
0 |
assert(buf && buf->unit); |
|
0 |
7 |
assert(buf && buf->unit); |
228
|
7 |
0 |
if (buf->size < buf->asize && buf->data[buf->size] == 0) |
|
1 |
6 |
if (buf->size < buf->asize && buf->data[buf->size] == 0) |
243
|
39 |
0 |
assert(buf && buf->unit); |
|
0 |
39 |
assert(buf && buf->unit); |
245
|
1 |
38 |
if (buf->size >= buf->asize) |
252
|
39 |
0 |
if (n < 0) { |
262
|
1 |
38 |
if ((size_t)n >= buf->asize - buf->size) { |
270
|
39 |
0 |
if (n < 0) |
279
|
0 |
0 |
assert(buf && buf->unit); |
|
0 |
0 |
assert(buf && buf->unit); |
281
|
0 |
0 |
if (c < 0x80) { |
284
|
0 |
0 |
else if (c < 0x800) { |
289
|
0 |
0 |
else if (c - 0xd800u < 0x800) { |
292
|
0 |
0 |
else if (c < 0x10000) { |
298
|
0 |
0 |
else if (c < 0x110000) { |