line |
true |
false |
branch |
76
|
0 |
42 |
if ((lr = calloc(1, sizeof(*lr))) == NULL) { |
85
|
0 |
42 |
if (strcmp(pathname, "-") == 0) { |
92
|
14 |
28 |
if (lr->f == NULL) { |
106
|
0 |
98 |
lr->line_end += strcspn(lr->line_end, lr->nullSeparator ? "" : "\x0d\x0a"); |
118
|
70 |
56 |
while (lr->line_end < lr->buff_end) { |
124
|
70 |
0 |
if (lr->nullSeparator || line_start[0] != '\0') { |
|
70 |
0 |
if (lr->nullSeparator || line_start[0] != '\0') { |
132
|
28 |
28 |
if (lr->f == NULL) { |
133
|
28 |
0 |
if (lr->line_start == lr->buff_end) { |
149
|
0 |
28 |
if (lr->line_start > lr->buff) { |
163
|
0 |
28 |
if (new_buff_size <= lr->buff_length) { |
176
|
0 |
28 |
if ((p = realloc(lr->buff, new_buff_size + 1)) == NULL) { |
196
|
0 |
28 |
if (ferror(lr->f)) { |
202
|
28 |
0 |
if (feof(lr->f)) { |
203
|
28 |
0 |
if (lr->f != stdin) { |