line |
true |
false |
branch |
46
|
0 |
0 |
if(d.via.boolean) { |
67
|
0 |
0 |
if(ret < 0) { return ret; } |
74
|
0 |
0 |
if(ret < 0) { return ret; } |
81
|
0 |
0 |
if(ret < 0) { return ret; } |
88
|
0 |
0 |
if(ret < 0) { |
94
|
0 |
0 |
for(; o != oend; ++o) { |
96
|
0 |
0 |
if(ret < 0) { return ret; } |
106
|
0 |
0 |
if(ret < 0) { |
112
|
0 |
0 |
for(; kv != kvend; ++kv) { |
114
|
0 |
0 |
if(ret < 0) { return ret; } |
116
|
0 |
0 |
if(ret < 0) { return ret; } |
133
|
0 |
0 |
for (i = 0; i < size; ++i) { |
134
|
0 |
0 |
if (ptr[i] == '"') { |
136
|
0 |
0 |
} else if (isprint((unsigned char)ptr[i])) { |
152
|
0 |
0 |
fprintf(out, (o.via.boolean ? "true" : "false")); |
209
|
0 |
0 |
if(o.via.array.size != 0) { |
214
|
0 |
0 |
for(; p < pend; ++p) { |
224
|
0 |
0 |
if(o.via.map.size != 0) { |
231
|
0 |
0 |
for(; p < pend; ++p) { |
270
|
0 |
0 |
for (i = 0; i < size; ++i) { |
271
|
0 |
0 |
if (ptr[i] == '"') { |
272
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "\\\""); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "\\\""); |
273
|
0 |
0 |
} else if (isprint((unsigned char)ptr[i])) { |
274
|
0 |
0 |
if (aux_buffer_size > 0) { |
280
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "\\x%02x", (unsigned char)ptr[i]); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "\\x%02x", (unsigned char)ptr[i]); |
294
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "nil"); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "nil"); |
298
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, (o.via.boolean ? "true" : "false")); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, (o.via.boolean ? "true" : "false")); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, (o.via.boolean ? "true" : "false")); |
303
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "%" PRIu64, o.via.u64); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "%" PRIu64, o.via.u64); |
315
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "%" PRIi64, o.via.i64); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "%" PRIi64, o.via.i64); |
329
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "%f", o.via.f64); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "%f", o.via.f64); |
333
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "\""); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "\""); |
334
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "%.*s", (int)o.via.str.size, o.via.str.ptr); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "%.*s", (int)o.via.str.size, o.via.str.ptr); |
335
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "\""); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "\""); |
339
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "\""); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "\""); |
340
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, msgpack_object_bin_print_buffer, aux_buffer, aux_buffer_size, o.via.bin.ptr, o.via.bin.size); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, msgpack_object_bin_print_buffer, aux_buffer, aux_buffer_size, o.via.bin.ptr, o.via.bin.size); |
341
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "\""); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "\""); |
346
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "(ext: %" PRIi8 ")", o.via.ext.type); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "(ext: %" PRIi8 ")", o.via.ext.type); |
350
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "\""); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "\""); |
351
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, msgpack_object_bin_print_buffer, aux_buffer, aux_buffer_size, o.via.ext.ptr, o.via.ext.size); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, msgpack_object_bin_print_buffer, aux_buffer, aux_buffer_size, o.via.ext.ptr, o.via.ext.size); |
352
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "\""); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "\""); |
356
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "["); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "["); |
357
|
0 |
0 |
if(o.via.array.size != 0) { |
360
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, msgpack_object_print_buffer, aux_buffer, aux_buffer_size, *p); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, msgpack_object_print_buffer, aux_buffer, aux_buffer_size, *p); |
362
|
0 |
0 |
for(; p < pend; ++p) { |
363
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, ", "); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, ", "); |
364
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, msgpack_object_print_buffer, aux_buffer, aux_buffer_size, *p); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, msgpack_object_print_buffer, aux_buffer, aux_buffer_size, *p); |
367
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "]"); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "]"); |
371
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "{"); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "{"); |
372
|
0 |
0 |
if(o.via.map.size != 0) { |
375
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, msgpack_object_print_buffer, aux_buffer, aux_buffer_size, p->key); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, msgpack_object_print_buffer, aux_buffer, aux_buffer_size, p->key); |
376
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "=>"); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "=>"); |
377
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, msgpack_object_print_buffer, aux_buffer, aux_buffer_size, p->val); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, msgpack_object_print_buffer, aux_buffer, aux_buffer_size, p->val); |
379
|
0 |
0 |
for(; p < pend; ++p) { |
380
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, ", "); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, ", "); |
381
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, msgpack_object_print_buffer, aux_buffer, aux_buffer_size, p->key); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, msgpack_object_print_buffer, aux_buffer, aux_buffer_size, p->key); |
382
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "=>"); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "=>"); |
383
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, msgpack_object_print_buffer, aux_buffer, aux_buffer_size, p->val); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, msgpack_object_print_buffer, aux_buffer, aux_buffer_size, p->val); |
386
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "}"); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "}"); |
392
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "#", o.type, o.via.u64); |
|
0 |
0 |
MSGPACK_CHECKED_CALL(ret, snprintf, aux_buffer, aux_buffer_size, "#", o.type, o.via.u64); |
409
|
0 |
0 |
if(x.type != y.type) { return false; } |
429
|
0 |
0 |
return x.via.str.size == y.via.str.size && |
|
0 |
0 |
return x.via.str.size == y.via.str.size && |
433
|
0 |
0 |
return x.via.bin.size == y.via.bin.size && |
|
0 |
0 |
return x.via.bin.size == y.via.bin.size && |
437
|
0 |
0 |
return x.via.ext.size == y.via.ext.size && |
438
|
0 |
0 |
x.via.ext.type == y.via.ext.type && |
|
0 |
0 |
x.via.ext.type == y.via.ext.type && |
442
|
0 |
0 |
if(x.via.array.size != y.via.array.size) { |
444
|
0 |
0 |
} else if(x.via.array.size == 0) { |
451
|
0 |
0 |
if(!msgpack_object_equal(*px, *py)) { |
456
|
0 |
0 |
} while(px < pxend); |
461
|
0 |
0 |
if(x.via.map.size != y.via.map.size) { |
463
|
0 |
0 |
} else if(x.via.map.size == 0) { |
470
|
0 |
0 |
if(!msgpack_object_equal(px->key, py->key) || !msgpack_object_equal(px->val, py->val)) { |
|
0 |
0 |
if(!msgpack_object_equal(px->key, py->key) || !msgpack_object_equal(px->val, py->val)) { |
475
|
0 |
0 |
} while(px < pxend); |