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

Function ext_to_lang

src/store/store.c:3613–3623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3611};
3612
3613static const char *ext_to_lang(const char *ext) {
3614 if (!ext) {
3615 return NULL;
3616 }
3617 for (const ext_lang_entry_t *e = ext_lang_table; e->ext; e++) {
3618 if (strcmp(ext, e->ext) == 0) {
3619 return e->lang;
3620 }
3621 }
3622 return NULL;
3623}
3624
3625/* Get lowercase file extension from path */
3626static const char *file_ext(const char *path) {

Callers 1

arch_languagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected