MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / stack_push

Function stack_push

codegraph-kernel/grammars/kotlin/scanner.c:106–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104} Scanner;
105
106static 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.

Calls

no outgoing calls

Tested by

no test coverage detected