1#ifndef PRISM_INTERNAL_LINE_OFFSET_LIST_H
2#define PRISM_INTERNAL_LINE_OFFSET_LIST_H
24 pm_line_offset_list_append_slow(arena, list, cursor);
32int32_t pm_line_offset_list_line(
const pm_line_offset_list_t *list, uint32_t cursor, int32_t start_line);
A bump allocator for the prism parser.
#define PRISM_FORCE_INLINE
Force a function to be inlined at every call site.
A list of byte offsets of newlines in a string.
A list of offsets of the start of lines in a string.
uint32_t * offsets
The list of offsets.
size_t size
The number of offsets in the list.
size_t capacity
The capacity of the list that has been allocated.