| 674 | } |
| 675 | |
| 676 | void PiuTextEndNode(PiuText* self, PiuTextKind kind) |
| 677 | { |
| 678 | xsMachine *the = (*self)->the; |
| 679 | PiuTextBuffer* nodeBuffer = (*self)->nodeBuffer; |
| 680 | PiuTextOffset nodeOffset = (PiuTextOffset)(*nodeBuffer)->current; |
| 681 | PiuTextNodeBegin nodeBegin; |
| 682 | PiuTextNodeEnd nodeEnd; |
| 683 | PiuTextBufferGrow(the, nodeBuffer, sizeof(PiuTextNodeEndRecord)); |
| 684 | nodeBegin = NODE((*self)->nodeOffset); |
| 685 | (*self)->nodeOffset = nodeBegin->parentOffset; |
| 686 | (*self)->nodeLink = nodeBegin->link; |
| 687 | nodeEnd = NODE(nodeOffset); |
| 688 | nodeEnd->kind = kind; |
| 689 | nodeEnd->parentOffset = (kind == piuTextNodeEndSpanKind) ? (*self)->nodeOffset : (*self)->textOffset; |
| 690 | } |
| 691 | |
| 692 | void PiuTextFitHorizontally(void* it) |
| 693 | { |
no test coverage detected