Skip to main content

eccopyredirs

Function eccopyredirs 

Source
pub fn eccopyredirs(s: &mut estate) -> Option<eprog>
Expand description

Port of eccopyredirs(Estate s) from Src/parse.c:3003. Reads the WC_REDIR run at s->pc, counts the wordcodes needed, reserves space in ecbuf via ecispace, then re-walks s->pc re-emitting each redir’s wordcodes into the reserved slot — finally calls bld_eprog(0) to package the result as an Eprog.