| 872 | /* ── Scope blob parsing ──────────────────────────────────────────── */ |
| 873 | |
| 874 | static int tparam_cmp(const void *a, const void *b) { |
| 875 | const cs_tparam_t *x = (const cs_tparam_t *)a; |
| 876 | const cs_tparam_t *y = (const cs_tparam_t *)b; |
| 877 | if (x->owner != y->owner) { |
| 878 | return x->owner < y->owner ? -1 : 1; |
| 879 | } |
| 880 | int c = strcmp(x->name, y->name); |
| 881 | return c ? c : (x->pos > y->pos) - (x->pos < y->pos); |
| 882 | } |
| 883 | |
| 884 | /* Position of the type parameter `name` of `owner` in `f`, or CS_NONE. */ |
| 885 | static int tparam_find(const cs_file_t *f, int owner, const char *name, size_t len) { |
nothing calls this directly
no outgoing calls
no test coverage detected