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

Function lang_objectscript_export

src/discover/language.c:1612–1616  ·  view source on GitHub ↗

"<Export generator=" in the first line-probe bytes: an ObjectScript Studio * export, which is XML by name. */

Source from the content-addressed store, hash-verified

1610/* "<Export generator=" in the first line-probe bytes: an ObjectScript Studio
1611 * export, which is XML by name. */
1612static bool lang_objectscript_export(const unsigned char *head, size_t n) {
1613 char buf[LANG_PROBE_LINE + SKIP_ONE];
1614 lang_head_text(buf, LANG_PROBE_LINE, head, n);
1615 return strstr(buf, "<Export generator=") != NULL;
1616}
1617
1618_Static_assert(LANG_PROBE_CFC == CBM_LANGUAGE_PROBE_MAX, "the longest probe is the public bound");
1619

Callers 1

Calls 1

lang_head_textFunction · 0.85

Tested by

no test coverage detected