| 104 | } Scanner; |
| 105 | |
| 106 | static inline void stack_push(Stack *stack, char chr, bool triple, uint16_t prefix_len) { |
| 107 | uint8_t delim = (uint8_t)(triple ? (chr + 1) : chr); |
| 108 | uint8_t hi = (uint8_t)((prefix_len >> 8) & 0x3); |
| 109 | array_push(stack, (Delimiter)(uint8_t)(delim | (hi << PREFIX_HI_SHIFT))); |
| 110 | array_push(stack, (Delimiter)(uint8_t)(prefix_len & 0xFF)); |
| 111 | } |
| 112 | |
| 113 | // Returns false instead of aborting when there is nothing to pop, so that no |
| 114 | // input can terminate the host process through this path. |
no outgoing calls
no test coverage detected