Skip to main content

Patprog

Type Alias Patprog 

Source
pub type Patprog = Box<(patprog, Vec<u8>)>;
Expand description

typedef struct patprog *Patprog; from zsh.h:542. typedef struct patprog *Patprog; from zsh.h:542.

C zsh allocates the struct patprog header + bytecode as one contiguous malloc block, accessing bytecode via (char *)prog + prog->startoff. Rust has no flexible array members, so this typedef pairs the C-exact patprog header (zsh_h.rs:768) with an owned bytecode Vec<u8> — header at .0, bytecode at .1. startoff/size index into .1.

Aliased Type§

pub struct Patprog(/* private fields */);