Strategy 2: Same-module match. Scoring elsewhere retains the raw file QN. */
| 1466 | |
| 1467 | /* Strategy 2: Same-module match. Scoring elsewhere retains the raw file QN. */ |
| 1468 | static cbm_resolution_t resolve_same_module(const cbm_registry_t *r, const char *callee_name, |
| 1469 | const char *suffix, const char *module_qn, |
| 1470 | size_t scope_len) { |
| 1471 | const char *stored_key = same_module_candidate(r, module_qn, scope_len, callee_name); |
| 1472 | if (!stored_key && suffix && suffix[0]) |
| 1473 | stored_key = same_module_candidate(r, module_qn, scope_len, suffix); |
| 1474 | if (stored_key) |
| 1475 | return (cbm_resolution_t){stored_key, "same_module", CONF_SAME_MODULE, REG_RESOLVED}; |
| 1476 | return empty_result(); |
| 1477 | } |
| 1478 | |
| 1479 | /* Strategy 4: multiple candidates with import filtering. */ |
| 1480 | static cbm_resolution_t resolve_multi_with_imports(const cbm_registry_t *r, const qn_array_t *arr, |
no test coverage detected