A written type or namespace name into `segs`; *glob when it starts at the * global namespace. false for what is no dotted name (a tuple, an array, a * pointer, a text this code did not understand). */
| 5747 | * global namespace. false for what is no dotted name (a tuple, an array, a |
| 5748 | * pointer, a text this code did not understand). */ |
| 5749 | static bool parse_name(const char *s, size_t n, cs_seg_t *segs, int *nsegs, bool *glob) { |
| 5750 | size_t gl = sizeof(CS_GLOBAL_PREFIX) - SKIP_ONE; |
| 5751 | *glob = n >= gl && strncmp(s, CS_GLOBAL_PREFIX, gl) == 0; |
| 5752 | if (*glob) { |
| 5753 | s += gl; |
| 5754 | n -= gl; |
| 5755 | } |
| 5756 | return parse_path(s, n, segs, nsegs); |
| 5757 | } |
| 5758 | |
| 5759 | /* What a using directive names: a namespace into u->ns, a type into u->ent |
| 5760 | * (CS_AMBIGUOUS for several). Both stay CS_NONE for what the repository does |
no test coverage detected