10 #include "zpmod_version.h"
14 int bin_zpdirlist(
char *nam,
char **argv, Options ops,
int func);
18 static struct builtin
bintab[] = {
19 #ifdef ZPMOD_HAVE_SOURCE_STUDY
22 BUILTIN(
"readarray", 0,
bin_readarray, 1, 1, 0,
"d:n:O:s:tu:C:c:h", NULL),
26 BUILTIN(
"zpmod", 0,
bin_zpmod, 0, -1, 0,
"hV", NULL),
30 bintab, (int)(
sizeof(
bintab) /
sizeof(*bintab)), NULL, 0, NULL, 0, NULL, 0,
37 #ifdef ZPMOD_HAVE_SOURCE_STUDY
59 #ifdef ZPMOD_HAVE_SOURCE_STUDY
int enables_(Module m, int **enables)
Enable/disable builtins as requested by the shell.
int bin_zpdirlist(char *nam, char **argv, Options ops, int func)
zpdirlist builtin entrypoint
int features_(Module m, char ***features)
Provide feature list (builtins) to zsh.
int bin_zppathstat(char *nam, char **argv, Options ops, int func)
zppathstat builtin entrypoint
int boot_(UNUSED(Module m))
Optional early boot hook (unused).
static struct features module_features
int finish_(UNUSED(Module m))
Finalize module: restore original source handlers.
static struct builtin bintab[]
int cleanup_(Module m)
Cleanup features when unloading.
int setup_(UNUSED(Module m))
Module setup: initialize option mapping and install source overrides.
int bin_zpreadfile(char *nam, char **argv, Options ops, int func)
zpreadfile builtin entrypoint
void zp_setup_options_table(void)
Populate runtime option indices for the stable enum table.
int bin_readarray(char *nam, char **argv, Options ops, int func)
readarray builtin entrypoint
void zp_source_restore_overrides(void)
void zp_source_setup_overrides(void)
int bin_custom_dot(char *name, char **argv, UNUSED(Options ops), UNUSED(int func))
Replacement handler for '.
Module declaration header (mdh) for zpmod.
Prototype stub for zpmod when building out-of-tree.
int bin_zpmod(char *nam, char **argv, Options ops, int func)
int setfeatureenables(Module m, Features features, int **enables)
int handlefeatures(Module m, Features features, int **enables)
char ** featuresarray(Module m, Features features)
Local, non-invasive shims to suppress benign vendor header warnings.