Open the next label's scan of an alternation; false when none is left. */
| 6075 | |
| 6076 | /* Open the next label's scan of an alternation; false when none is left. */ |
| 6077 | static bool start_source_next_label(start_source_t *src) { |
| 6078 | char *tok = strtok_r(src->labels_started ? NULL : src->labels, "|", &src->labels_save); |
| 6079 | src->labels_started = true; |
| 6080 | if (!tok) { |
| 6081 | return false; |
| 6082 | } |
| 6083 | src->scan = cbm_store_node_scan_open(src->store, src->project, tok); |
| 6084 | if (!src->scan) { |
| 6085 | start_source_fail(src, cbm_store_error(src->store)); |
| 6086 | } |
| 6087 | return true; |
| 6088 | } |
| 6089 | |
| 6090 | /* Fill out[0..max) with the next start nodes. Fewer than max only once the |
| 6091 | * scan is exhausted or has failed. */ |
no test coverage detected