| 398 | } |
| 399 | |
| 400 | const unsigned char *LineAnnotation::Styles(int line) const { |
| 401 | if (annotations.Length() && (line >= 0) && (line < annotations.Length()) && annotations[line] && MultipleStyles(line)) |
| 402 | return reinterpret_cast<unsigned char *>(annotations[line] + sizeof(AnnotationHeader) + Length(line)); |
| 403 | else |
| 404 | return 0; |
| 405 | } |
| 406 | |
| 407 | static char *AllocateAnnotation(int length, int style) { |
| 408 | size_t len = sizeof(AnnotationHeader) + length + ((style == IndividualStyles) ? length : 0); |
no test coverage detected