1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//! Ported subsystems — every submodule here is a faithful 1:1 port of
//! a corresponding upstream zsh C source file under `src/zsh/Src/`.
//!
//! Companion / opposite of `src/extensions/`. See `docs/PORT.md` for the
//! full ruleset. `tests/port_purity.rs` enforces:
//! - Every `.rs` file under this directory has a matching `.c` file
//! under `src/zsh/Src/` (byte-for-byte identical stem).
//! - Every top-level `fn` carries a doc comment matching the PORT.md
//! template: `/// Port of NAME() from Src/STEM.c:NNNN`.
//! - No file may carry the `WARNING: THIS IS ADHOC IMPLEMENTATION`
//! marker.
//!
//! The crate root re-exports every submodule (`pub use ported::*;` in
//! `src/lib.rs`) so historical call sites that reference
//! `crate::exec::`, `crate::subst::`, `crate::zle::`, etc. continue
//! to resolve unchanged.
// `exec` was moved to crate root (src/exec.rs) — it isn't a port of
// Src/exec.c (zshrs replaced the tree-walking interpreter with the
// fusevm bytecode VM). Keep `crate::ported::exec` as a path alias so
// the many existing `crate::ported::exec::*` call-sites still work.
pub use crateexec;