zpmod  b19981f
High-performance Zsh module for script optimization and filesystem helpers
src layout

This directory contains the zpmod module sources organized by layer:

Maintenance rules

  • Builtins are registered statically in module/module.c; features via features_/enables_; setup_ installs overrides, finish_ restores.
  • Use zsh allocators (zalloc, zfree, zsfree); when length is known, free with the exact length.
  • Map options via the stable enum using compat/options.c and include/zpmod_compat.h (zp_conv_opt).
  • Prefer vendored zsh headers under vendor/zsh; keep public APIs within include/zpmod_*.h to avoid leaking internal headers between units.

Module imports

Build/test

  • Use VS Code tasks: Configure (when needed) → Build → CTest (smoke for quick, all before PRs).
  • Tests live under tests/* and run via CTest; module loaded from the staged prefix.