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

Function disambiguate_cfc_content

tests/test_language.c:701–713  ·  view source on GitHub ↗

Helper: write content to a temp .cfc and return its disambiguated language. */

Source from the content-addressed store, hash-verified

699
700/* Helper: write content to a temp .cfc and return its disambiguated language. */
701static CBMLanguage disambiguate_cfc_content(const char *name, const char *content) {
702 char path[256];
703 snprintf(path, sizeof(path), "%s/%s", cbm_tmpdir(), name);
704 FILE *f = fopen(path, "w");
705 if (!f) {
706 return CBM_LANG_COUNT;
707 }
708 fputs(content, f);
709 fclose(f);
710 CBMLanguage lang = cbm_disambiguate_cfc(path);
711 remove(path);
712 return lang;
713}
714
715/* ── .cls / .frm: VB6 vs Apex / ObjectScript / FORM (#721) ────────── */
716

Callers 1

test_language.cFile · 0.85

Calls 4

cbm_tmpdirFunction · 0.85
fopenFunction · 0.85
cbm_disambiguate_cfcFunction · 0.85
removeFunction · 0.85

Tested by

no test coverage detected