| 1296 | } |
| 1297 | |
| 1298 | static int rs_def_cmp(const void *a, const void *b) { |
| 1299 | const rs_def_t *x = (const rs_def_t *)a; |
| 1300 | const rs_def_t *y = (const rs_def_t *)b; |
| 1301 | int c = strcmp(x->label, y->label); |
| 1302 | return c ? c : (x->order > y->order) - (x->order < y->order); |
| 1303 | } |
| 1304 | |
| 1305 | /* The first definition of `label` (normalized), or NULL. */ |
| 1306 | static const rs_def_t *rs_def_find(const rs_defs_t *d, const char *label) { |
nothing calls this directly
no outgoing calls
no test coverage detected