| 4 | #define STR acl_vstring_str |
| 5 | |
| 6 | static int build_callback(ACL_JSON *, ACL_VSTRING *data, void *ctx) |
| 7 | { |
| 8 | ACL_VSTRING *buf = (ACL_VSTRING*) ctx; |
| 9 | |
| 10 | if (data == NULL) { |
| 11 | printf("ALL OVER NOW!\r\n"); |
| 12 | return 0; |
| 13 | } |
| 14 | |
| 15 | printf("input: length: %d, |%s|\r\n", (int) LEN(data), STR(data)); |
| 16 | acl_vstring_strcat(buf, STR(data)); |
| 17 | return 0; |
| 18 | } |
| 19 | |
| 20 | static void test_json_build(void) |
| 21 | { |
nothing calls this directly
no test coverage detected
searching dependent graphs…