Function stack_graphs::c::sg_partial_path_arena_add_partial_symbol_stacks [−][src]
#[no_mangle]
pub extern "C" fn sg_partial_path_arena_add_partial_symbol_stacks(
partials: *mut sg_partial_path_arena,
count: usize,
symbols: *const sg_partial_scoped_symbol,
lengths: *const usize,
variables: *const sg_symbol_stack_variable,
out: *mut sg_partial_symbol_stack
)Expand description
Adds new partial symbol stacks to the partial path arena. count is the number of partial
symbol stacks you want to create. The content of each partial symbol stack comes from two
arrays. The lengths array must have count elements, and provides the number of symbols in
each partial symbol stack. The symbols array contains the contents of each of these partial
symbol stacks in one contiguous array. Its length must be the sum of all of the counts in the
lengths array. The variables array must have count elements, and provides the optional
symbol stack variable for each partial symbol stack.
You must also provide an out array, which must also have room for count elements. We will
fill this array in with the sg_partial_symbol_stack instances for each partial symbol stack
that is created.
