MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / check_str_eq

Function check_str_eq

libs/qhttpserver/http-parser/test.c:2226–2244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2224}
2225
2226static inline int
2227check_str_eq (const struct message *m,
2228 const char *prop,
2229 const char *expected,
2230 const char *found) {
2231 if ((expected == NULL) != (found == NULL)) {
2232 printf("\n*** Error: %s in '%s' ***\n\n", prop, m->name);
2233 printf("expected %s\n", (expected == NULL) ? "NULL" : expected);
2234 printf(" found %s\n", (found == NULL) ? "NULL" : found);
2235 return 0;
2236 }
2237 if (expected != NULL && 0 != strcmp(expected, found)) {
2238 printf("\n*** Error: %s in '%s' ***\n\n", prop, m->name);
2239 printf("expected '%s'\n", expected);
2240 printf(" found '%s'\n", found);
2241 return 0;
2242 }
2243 return 1;
2244}
2245
2246static inline int
2247check_num_eq (const struct message *m,

Callers 2

message_eqFunction · 0.85
upgrade_message_fixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected