line |
true |
false |
branch |
42
|
0 |
45 |
if (!delim) { |
55
|
0 |
45 |
if (del[0] == '"') { |
58
|
1087 |
3 |
while ((c = getc(f)) != EOF) { |
59
|
0 |
1087 |
if (c == '\r') /* carriage return */ |
61
|
5 |
1082 |
if (c == '(' && prev_c != '\\' && !quoted) { |
|
5 |
0 |
if (c == '(' && prev_c != '\\' && !quoted) { |
|
5 |
0 |
if (c == '(' && prev_c != '\\' && !quoted) { |
63
|
1 |
4 |
if (com == 0) { |
70
|
5 |
1077 |
if (c == ')' && prev_c != '\\' && !quoted) { |
|
5 |
0 |
if (c == ')' && prev_c != '\\' && !quoted) { |
|
5 |
0 |
if (c == ')' && prev_c != '\\' && !quoted) { |
72
|
1 |
4 |
if (com == 0) { |
79
|
0 |
1077 |
if (p < 0) { |
86
|
6 |
1071 |
if (c == ';' && quoted == 0) { |
|
6 |
0 |
if (c == ';' && quoted == 0) { |
87
|
6 |
0 |
if (prev_c != '\\') { |
91
|
0 |
1077 |
if (c == '\"' && com == 0 && prev_c != '\\') { |
|
0 |
0 |
if (c == '\"' && com == 0 && prev_c != '\\') { |
|
0 |
0 |
if (c == '\"' && com == 0 && prev_c != '\\') { |
95
|
42 |
1035 |
if (c == '\n' && com != 0) { |
|
6 |
36 |
if (c == '\n' && com != 0) { |
99
|
0 |
6 |
if (line_nr) { |
102
|
1 |
5 |
if (p == 0 && i > 0) { |
|
0 |
1 |
if (p == 0 && i > 0) { |
110
|
77 |
994 |
if (com == 1) { |
116
|
36 |
958 |
if (c == '\n' && p != 0 && t > token) { |
|
1 |
35 |
if (c == '\n' && p != 0 && t > token) { |
|
1 |
0 |
if (c == '\n' && p != 0 && t > token) { |
118
|
0 |
1 |
if (line_nr) { |
127
|
3001 |
952 |
for (d = del; *d; d++) { |
128
|
41 |
2960 |
if (c == *d && i > 0 && prev_c != '\\' && p == 0) { |
|
41 |
0 |
if (c == *d && i > 0 && prev_c != '\\' && p == 0) { |
|
41 |
0 |
if (c == *d && i > 0 && prev_c != '\\' && p == 0) { |
|
41 |
0 |
if (c == *d && i > 0 && prev_c != '\\' && p == 0) { |
129
|
35 |
6 |
if (c == '\n' && line_nr) { |
|
3 |
32 |
if (c == '\n' && line_nr) { |
135
|
952 |
0 |
if (c != '\0' && c != '\n') { |
|
952 |
0 |
if (c != '\0' && c != '\n') { |
138
|
887 |
65 |
if (limit > 0 && (i >= limit || (size_t)(t-token) >= limit)) { |
|
887 |
0 |
if (limit > 0 && (i >= limit || (size_t)(t-token) >= limit)) { |
|
0 |
887 |
if (limit > 0 && (i >= limit || (size_t)(t-token) >= limit)) { |
142
|
952 |
0 |
if (c != '\0' && c != '\n') { |
|
952 |
0 |
if (c != '\0' && c != '\n') { |
145
|
0 |
952 |
if (c == '\\' && prev_c == '\\') |
|
0 |
0 |
if (c == '\\' && prev_c == '\\') |
150
|
3 |
0 |
if (c == EOF) { |
154
|
0 |
0 |
if (i == 0) { |
158
|
0 |
0 |
if (p != 0) { |
164
|
0 |
42 |
if(*del == '"') /* do not skip over quotes, they are significant */ |
168
|
0 |
42 |
if (p != 0) { |
191
|
0 |
0 |
if(strlen(keyword) >= LDNS_MAX_KEYWORDLEN) |
194
|
0 |
0 |
if(!fkeyword) |
198
|
0 |
0 |
if(i==0 || i==-1) { |
|
0 |
0 |
if(i==0 || i==-1) { |
204
|
0 |
0 |
if (strncmp(fkeyword, keyword, LDNS_MAX_KEYWORDLEN - 1) == 0) { |
230
|
0 |
387 |
if (!delim) { |
243
|
2 |
385 |
if (del[0] == '"') { |
247
|
5525 |
146 |
while ((c = ldns_bgetc(b)) != EOF) { |
248
|
0 |
5525 |
if (c == '\r') /* carriage return */ |
250
|
4 |
5521 |
if (c == '(' && lc != '\\' && !quoted) { |
|
4 |
0 |
if (c == '(' && lc != '\\' && !quoted) { |
|
0 |
4 |
if (c == '(' && lc != '\\' && !quoted) { |
252
|
0 |
0 |
if (com == 0) { |
259
|
4 |
5521 |
if (c == ')' && lc != '\\' && !quoted) { |
|
4 |
0 |
if (c == ')' && lc != '\\' && !quoted) { |
|
0 |
4 |
if (c == ')' && lc != '\\' && !quoted) { |
261
|
0 |
0 |
if (com == 0) { |
268
|
0 |
5525 |
if (p < 0) { |
275
|
0 |
5525 |
if (c == ';' && quoted == 0) { |
|
0 |
0 |
if (c == ';' && quoted == 0) { |
276
|
0 |
0 |
if (lc != '\\') { |
280
|
6 |
5519 |
if (c == '"' && com == 0 && lc != '\\') { |
|
6 |
0 |
if (c == '"' && com == 0 && lc != '\\') { |
|
6 |
0 |
if (c == '"' && com == 0 && lc != '\\') { |
284
|
0 |
5525 |
if (c == '\n' && com != 0) { |
|
0 |
0 |
if (c == '\n' && com != 0) { |
292
|
0 |
5525 |
if (com == 1) { |
298
|
0 |
5525 |
if (c == '\n' && p != 0) { |
|
0 |
0 |
if (c == '\n' && p != 0) { |
306
|
7269 |
5284 |
for (d = del; *d; d++) { |
307
|
241 |
7028 |
if (c == *d && lc != '\\' && p == 0) { |
|
241 |
0 |
if (c == *d && lc != '\\' && p == 0) { |
|
241 |
0 |
if (c == *d && lc != '\\' && p == 0) { |
313
|
5284 |
0 |
if (limit > 0 && (i >= limit || (size_t)(t-token) >= limit)) { |
|
5284 |
0 |
if (limit > 0 && (i >= limit || (size_t)(t-token) >= limit)) { |
|
0 |
5284 |
if (limit > 0 && (i >= limit || (size_t)(t-token) >= limit)) { |
319
|
0 |
5284 |
if (c == '\\' && lc == '\\') { |
|
0 |
0 |
if (c == '\\' && lc == '\\') { |
326
|
21 |
125 |
if (i == 0) { |
330
|
0 |
125 |
if (p != 0) { |
336
|
2 |
239 |
if(*del == '"') /* do not skip over quotes, they are significant */ |
341
|
0 |
241 |
if (p != 0) { |
355
|
312 |
2 |
while(ldns_buffer_available_at(buffer, buffer->_position, sizeof(char))) { |
358
|
918 |
312 |
for (d = s; *d; d++) { |
359
|
73 |
845 |
if (*d == c) { |
363
|
73 |
239 |
if (found && buffer->_limit > buffer->_position) { |
|
73 |
0 |
if (found && buffer->_limit > buffer->_position) { |
384
|
43 |
3 |
while ((c = fgetc(fp)) != EOF) { |
385
|
13 |
30 |
if (line_nr && c == '\n') { |
|
0 |
13 |
if (line_nr && c == '\n') { |
389
|
162 |
43 |
for (d = s; *d; d++) { |
390
|
4 |
158 |
if (*d == c) { |
394
|
39 |
4 |
if (!found) { |
410
|
0 |
0 |
if(strlen(keyword) >= LDNS_MAX_KEYWORDLEN) |
413
|
0 |
0 |
if(!fkeyword) |
417
|
0 |
0 |
if(i==0 || i==-1) { |
|
0 |
0 |
if(i==0 || i==-1) { |
423
|
0 |
0 |
if (strncmp(fkeyword, keyword, strlen(keyword)) == 0) { |