| 960 | } |
| 961 | |
| 962 | static int go_linkdef_cmp(const void *a, const void *b) { |
| 963 | const go_linkdef_t *x = (const go_linkdef_t *)a; |
| 964 | const go_linkdef_t *y = (const go_linkdef_t *)b; |
| 965 | int c = go_linktext_cmp(x->text, x->text_len, y->text, y->text_len, false); |
| 966 | return c ? c : x->order - y->order; |
| 967 | } |
| 968 | |
| 969 | /* The first definition of the link text `key`, or NULL. */ |
| 970 | static const go_linkdef_t *go_find_linkdef(const go_doc_t *d, const char *key, size_t key_len) { |
nothing calls this directly
no test coverage detected