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

Function emit_parameter

internal/cbm/iris_export_xml.c:261–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261static void emit_parameter(UdlBuf *b, const char *ps, const char *pe) {
262 char pn[MAX_NAME];
263 extract_attr(ps, pe, "name", pn, sizeof(pn));
264 if (!pn[0])
265 return;
266 char dv[MAX_NAME] = "";
267 elem_content(ps, pe, "Default", dv, sizeof(dv));
268 ub_app(b, "Parameter ");
269 ub_app(b, pn);
270 if (dv[0]) {
271 ub_app(b, " = \"");
272 ub_app(b, dv);
273 ub_app(b, "\"");
274 }
275 ub_app(b, ";\n\n");
276}
277
278static void emit_index(UdlBuf *b, const char *is_, const char *ie) {
279 char in_[MAX_NAME];

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