Resolve an identifier against the constant table. Returns NULL on miss. */
| 170 | |
| 171 | /* Resolve an identifier against the constant table. Returns NULL on miss. */ |
| 172 | static const char *resolve_identifier(const chan_const_table_t *tbl, const char *name) { |
| 173 | if (!name) { |
| 174 | return NULL; |
| 175 | } |
| 176 | for (int i = 0; i < tbl->count; i++) { |
| 177 | if (tbl->items[i].name && strcmp(tbl->items[i].name, name) == 0) { |
| 178 | return tbl->items[i].value; |
| 179 | } |
| 180 | } |
| 181 | return NULL; |
| 182 | } |
| 183 | |
| 184 | /* ── Enclosing function detection ───────────────────────────────── */ |
| 185 |
no outgoing calls
no test coverage detected