| 275 | } |
| 276 | |
| 277 | static bool code_node(const pdfr_index_t *x, const cbm_gbuf_node_t *n) { |
| 278 | if (!n->label || in_list(n->label, PDFR_EXCLUDED_LABELS) || !n->qualified_name || |
| 279 | !n->qualified_name[0]) { |
| 280 | return false; |
| 281 | } |
| 282 | if (n->file_path && n->file_path[0] == '<') { |
| 283 | return false; /* builtins */ |
| 284 | } |
| 285 | return strncmp(rel_qn(x, n->qualified_name), "__", 2) != 0; /* dependency stand-ins */ |
| 286 | } |
| 287 | |
| 288 | /* s is a component-aligned suffix of q ('.'-separated) */ |
| 289 | static bool comp_suffix(const char *q, const char *s) { |
no test coverage detected