| 939 | } gb_span_vec_t; |
| 940 | |
| 941 | static bool gb_variant_label(const char *label) { |
| 942 | static const char *const labels[] = {"Function", "Method", "Class", "Interface", "Enum", |
| 943 | "Struct", "Trait", "Type", "Macro"}; |
| 944 | for (size_t i = 0; label && i < sizeof(labels) / sizeof(labels[0]); i++) { |
| 945 | if (strcmp(label, labels[i]) == 0) { |
| 946 | return true; |
| 947 | } |
| 948 | } |
| 949 | return false; |
| 950 | } |
| 951 | |
| 952 | static int gb_span_cmp(const void *a, const void *b) { |
| 953 | const gb_span_t *x = a; |
no outgoing calls
no test coverage detected