MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / aa_child_cmp

Function aa_child_cmp

src/ui/atlas_api.c:159–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159static 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
168char *cbm_atlas_tree_json(cbm_store_t *store, const char *project, const char *path) {
169 if (!store || !project)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected