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

Function copy_row

src/pipeline/doc_links.c:779–786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

777/* ── Incremental carry-forward ───────────────────────────────────── */
778
779static bool copy_row(cbm_doc_link_row_t *dst, const cbm_doc_link_row_t *src) {
780 dst->rel_path = dup_or_empty(src->rel_path);
781 dst->line = src->line;
782 dst->syntax = dup_or_empty(src->syntax);
783 dst->raw = dup_or_empty(src->raw);
784 dst->reason = dup_or_empty(src->reason);
785 return dst->rel_path && dst->syntax && dst->raw && dst->reason;
786}
787
788int cbm_doclinks_merge_rows(const cbm_doc_link_row_t *old_rows, int old_count,
789 const CBMHashTable *replaced, const cbm_doc_link_row_t *fresh,

Callers 1

cbm_doclinks_merge_rowsFunction · 0.85

Calls 1

dup_or_emptyFunction · 0.85

Tested by

no test coverage detected