Skip to main content

pm_node_list_append

Function pm_node_list_append 

Source
pub unsafe extern "C" fn pm_node_list_append(
    arena: *mut pm_arena_t,
    list: *mut pm_node_list_t,
    node: *mut pm_node_t,
)
Expand description

Append a node to the end of a node list. A node list’s storage is always exactly its size, so it is regrown to exactly one more node by allocating from the given arena, which must live as long as the list does. For a list in a parsed tree, that is the arena that was passed to pm_parser_new.

@param arena The arena to allocate the list’s storage from. @param list The list to append to. @param node The node to append.