Skip to main content

set_sublist_code

Function set_sublist_code 

Source
pub fn set_sublist_code(
    p: usize,
    type_code: i32,
    flags: i32,
    skip: i32,
    cmplx: bool,
)
Expand description

Port of set_sublist_code(int p, int type, int flags, int skip, int cmplx) from Src/parse.c:755. Patches the WCB_SUBLIST header at p. When the sublist is non-complex (single command, no pipeline), sets WC_SUBLIST_SIMPLE and rewrites the following slot to WC_PIPE_LINENO.