| 1047 | } |
| 1048 | |
| 1049 | static int pl_named_cmp(const void *a, const void *b) { |
| 1050 | const pl_named_t *x = (const pl_named_t *)a; |
| 1051 | const pl_named_t *y = (const pl_named_t *)b; |
| 1052 | int c = pl_name_cmp(x->name, x->len, y->name, y->len); |
| 1053 | return c != 0 ? c : (x->sec > y->sec) - (x->sec < y->sec); |
| 1054 | } |
| 1055 | |
| 1056 | /* The sections that name something, sorted by name and then by position. */ |
| 1057 | static pl_named_t *pl_named_sections(const pl_scan_t *s, int *count) { |
nothing calls this directly
no test coverage detected