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

Function emit_xdata

internal/cbm/iris_export_xml.c:304–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304static void emit_xdata(UdlBuf *b, const char *xs, const char *xe) {
305 char xn[MAX_NAME];
306 extract_attr(xs, xe, "name", xn, sizeof(xn));
307 if (!xn[0])
308 return;
309 char data[1024 * 32] = "";
310 elem_content(xs, xe, "Data", data, sizeof(data));
311 ub_app(b, "XData ");
312 ub_app(b, xn);
313 ub_app(b, "\n{\n");
314 ub_app(b, data);
315 ub_app(b, "\n}\n\n");
316}
317
318static char *transcode_class(CBMArena *arena, const char *cs, const char *ce) {
319 UdlBuf b;

Callers 1

transcode_classFunction · 0.85

Calls 3

extract_attrFunction · 0.85
elem_contentFunction · 0.85
ub_appFunction · 0.85

Tested by

no test coverage detected