| 385 | } |
| 386 | } |
| 387 | static void cson__render(cson_value *val) |
| 388 | { |
| 389 | if (!val->modified) return; |
| 390 | cson__output(val); |
| 391 | JsonString tmp = val->output; |
| 392 | if (tmp.bStatic) tmp.zBuf = tmp.zSpace; |
| 393 | jsonInit(&val->output, NULL); |
| 394 | cson__parse(val, tmp.zBuf, tmp.nUsed); |
| 395 | jsonReset(&tmp); |
| 396 | } |
| 397 | static int cson__set(cson_value *val, char *path, cson_value *v) |
| 398 | { |
| 399 | JsonParse *parse = &val->parse; |
no test coverage detected