Helper: write content to a temp .cfc and return its disambiguated language. */
| 699 | |
| 700 | /* Helper: write content to a temp .cfc and return its disambiguated language. */ |
| 701 | static 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 |
no test coverage detected