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

Function ext_to_lang

src/store/store.c:5544–5554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5542};
5543
5544static const char *ext_to_lang(const char *ext) {
5545 if (!ext) {
5546 return NULL;
5547 }
5548 for (const ext_lang_entry_t *e = ext_lang_table; e->ext; e++) {
5549 if (strcmp(ext, e->ext) == 0) {
5550 return e->lang;
5551 }
5552 }
5553 return NULL;
5554}
5555
5556/* Get lowercase file extension from path */
5557static const char *file_ext(const char *path) {

Callers 1

arch_languagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected