| 157 | } |
| 158 | |
| 159 | static int aa_child_cmp(const void *a, const void *b) { |
| 160 | const aa_tree_child_t *ca = a, *cb = b; |
| 161 | if (ca->is_file != cb->is_file) |
| 162 | return ca->is_file - cb->is_file; /* folders first */ |
| 163 | if (cb->symbols != ca->symbols) |
| 164 | return cb->symbols > ca->symbols ? 1 : -1; |
| 165 | return strcmp(ca->name, cb->name); |
| 166 | } |
| 167 | |
| 168 | char *cbm_atlas_tree_json(cbm_store_t *store, const char *project, const char *path) { |
| 169 | if (!store || !project) |
nothing calls this directly
no outgoing calls
no test coverage detected