| 642 | } |
| 643 | |
| 644 | static char c_def_kind(const CBMDefinition *d) { |
| 645 | const char *l = d->label; |
| 646 | if (strcmp(l, "Function") == 0) { |
| 647 | return 'f'; |
| 648 | } |
| 649 | if (strcmp(l, "Variable") == 0) { |
| 650 | return d->parent_class ? 'e' : 'v'; |
| 651 | } |
| 652 | if (strcmp(l, "Field") == 0) { |
| 653 | return 'r'; |
| 654 | } |
| 655 | if (strcmp(l, "Macro") == 0) { |
| 656 | return d->signature ? 'M' : 'm'; |
| 657 | } |
| 658 | if (strcmp(l, "Type") == 0 || strcmp(l, "Class") == 0 || strcmp(l, "Enum") == 0) { |
| 659 | return 't'; |
| 660 | } |
| 661 | return 0; |
| 662 | } |
| 663 | |
| 664 | /* `\page name`, `\defgroup name` ... in one doc text: A records. */ |
| 665 | static void c_anchors(c_sb_t *sb, const char *doc) { |
no outgoing calls
no test coverage detected