Like constuctor, except take struct off free list if there is one.
| 210 | |
| 211 | // Like constuctor, except take struct off free list if there is one. |
| 212 | splitLine_t * getSplitLine() |
| 213 | { |
| 214 | splitLine_t * line; |
| 215 | if (splitLineFreeList == NULL) |
| 216 | { |
| 217 | line = makeSplitLine(); |
| 218 | } |
| 219 | else |
| 220 | { |
| 221 | line = splitLineFreeList; |
| 222 | splitLineFreeList = splitLineFreeList->next; |
| 223 | } |
| 224 | line->next = NULL; |
| 225 | line->CIGARprocessed = false; |
| 226 | // Mark these here so that the code for these doesn't have to stand on its head to do it. |
| 227 | line->discordant = false; |
| 228 | line->splitter = false; |
| 229 | line->unmappedClipped = false; |
| 230 | return line; |
| 231 | } |
| 232 | |
| 233 | // Split the line into fields. |
| 234 | void splitSplitLine(splitLine_t * line, int maxSplits) |
no test coverage detected