| 1143 | } pl_docdef_t; |
| 1144 | |
| 1145 | static int pl_docdef_cmp(const void *a, const void *b) { |
| 1146 | const pl_docdef_t *x = (const pl_docdef_t *)a; |
| 1147 | const pl_docdef_t *y = (const pl_docdef_t *)b; |
| 1148 | int c = strcmp(x->qn, y->qn); |
| 1149 | return c != 0 ? c : (x->idx > y->idx) - (x->idx < y->idx); |
| 1150 | } |
| 1151 | |
| 1152 | /* twin[i]: definition i repeats the qualified name AND the doc of an earlier |
| 1153 | * one (the same sub name in two packages of a file is one node with one doc): |
nothing calls this directly
no outgoing calls
no test coverage detected