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

Function rs_parse_node

src/pipeline/doc_links_rs.c:779–792  ·  view source on GitHub ↗

The node field of a T or M record: '!' for none, else a label code and '=' * (the node's name is the record's name as written) or ':' and the node's * name after the item prefix. */

Source from the content-addressed store, hash-verified

777 * (the node's name is the record's name as written) or ':' and the node's
778 * name after the item prefix. */
779static void rs_parse_node(const char *field, const char *name, char *label, const char **suffix) {
780 *label = 0;
781 *suffix = NULL;
782 if (!field[0] || field[0] == '!') {
783 return;
784 }
785 if (field[SKIP_ONE] == '=') {
786 *label = field[0];
787 *suffix = name;
788 } else if (field[SKIP_ONE] == ':' && field[PAIR_LEN]) {
789 *label = field[0];
790 *suffix = field + PAIR_LEN;
791 }
792}
793
794/* A module field of a record of file `f`: the module, or CBM_NOT_FOUND when
795 * the number is not one of the file's. */

Callers 2

rs_read_itemFunction · 0.85
rs_read_memberFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected