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

Function ext_to_lang

src/store/store.c:5443–5453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5441};
5442
5443static const char *ext_to_lang(const char *ext) {
5444 if (!ext) {
5445 return NULL;
5446 }
5447 for (const ext_lang_entry_t *e = ext_lang_table; e->ext; e++) {
5448 if (strcmp(ext, e->ext) == 0) {
5449 return e->lang;
5450 }
5451 }
5452 return NULL;
5453}
5454
5455/* Get lowercase file extension from path */
5456static const char *file_ext(const char *path) {

Callers 1

arch_languagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected