| 60 | return NULL; |
| 61 | } |
| 62 | static yyjson_doc *read_snapshot(const char *path) { |
| 63 | char *json = cbm_runtime_settings_get_json(path); |
| 64 | yyjson_doc *document = json ? yyjson_read(json, strlen(json), 0) : NULL; |
| 65 | cbm_free(CBM_MEM_CLASS_OTHER, json); |
| 66 | return document; |
| 67 | } |
| 68 | static char *apply(const char *path, const char *changes, int *status) { |
| 69 | yyjson_doc *before = read_snapshot(path); |
| 70 | if (!before) |
no test coverage detected