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. If the list is full, its storage is grown by allocating from the given arena, so the arena 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.