Skip to main content

makearray

Function makearray 

Source
pub fn makearray(rp: Vec<Cmatch>, flags: i32) -> (Vec<Cmatch>, i32, i32, i32)
Expand description

Port of static Cmatch *makearray(LinkList l, int type, int flags, int *np, int *nlp, int *llp) from compcore.c:3223. Returns (arr, n, nl, ll).

type is fixed to 1 (match-sort path) for the in-file call sites from permmatches. The type=0 string-sort path on lexpls is inlined at the permmatches call site (C uses a (char **) cast trick that has no safe Rust equivalent).