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

Function tdx_language

internal/cbm/extract_defs.c:5555–5565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5553} TDXRule;
5554
5555static int tdx_language(const char *name) {
5556 if (!name)
5557 return 0;
5558 if (strcmp(name, "c") == 0 || strcmp(name, "C") == 0)
5559 return 1;
5560 if (strcmp(name, "cpp") == 0 || strcmp(name, "c++") == 0 || strcmp(name, "C++") == 0)
5561 return 2;
5562 if (strcmp(name, "cuda") == 0 || strcmp(name, "CUDA") == 0)
5563 return 3;
5564 return 0;
5565}
5566
5567static int tdx_source_language(CBMLanguage language) {
5568 return language == CBM_LANG_C ? 1

Callers 3

tdx_matchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected