Helper: return the entry_rel registered for `name`, or NULL. */
| 18129 | |
| 18130 | /* Helper: return the entry_rel registered for `name`, or NULL. */ |
| 18131 | static const char *pkg_entries_entry_for(const cbm_pkg_entries_t *e, const char *name) { |
| 18132 | for (int i = 0; i < e->count; i++) { |
| 18133 | if (e->items[i].pkg_name && strcmp(e->items[i].pkg_name, name) == 0) |
| 18134 | return e->items[i].entry_rel; |
| 18135 | } |
| 18136 | return NULL; |
| 18137 | } |
| 18138 | |
| 18139 | /* ── SwiftPM Package.swift manifest resolution (issue #551 item 1) ── |
| 18140 | * |