| 73 | "``pkg.base.top`` and :source:`a file <pkg/base.py>`.\n"; /* 43 */ |
| 74 | |
| 75 | static int rst_count(const CBMFileResult *r, int syntax) { |
| 76 | int n = 0; |
| 77 | for (int i = 0; i < r->doc_links.count; i++) { |
| 78 | n += r->doc_links.items[i].syntax == syntax; |
| 79 | } |
| 80 | return n; |
| 81 | } |
| 82 | |
| 83 | static bool rst_raw_has(const CBMFileResult *r, const char *needle) { |
| 84 | for (int i = 0; i < r->doc_links.count; i++) { |