code wiki / _hdl_build / nx_fb2_fixture.nx
nx_fb2_fixture.nx
buildroot/runtime/_hdl_build/nx_fb2_fixture.nx
about
nx_fb2_fixture.nx -- write a tiny sovereign DRM-free FB2 (FictionBook 2.0) file so the FB2->Nishi rung can be
gated end-to-end (nx_fb2_book decodes -> book.json -> nx_nmz_pack @kind=book). A real .fb2 is a single XML file;
this one has the title-info (title + author first/last) in <description> and prose in <body><section>, including
a section <title> heading -- exactly the shape nx_fb2_book parses. expect_exit: 0 license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 7 | func fx_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } called by 1: fxw |
| 8 | func fxw(fd: i64, s: *u8) -> i64 { sys_write(fd, s, fx_slen(s)); return 0 } |
| 9 | func ensure_dir(path: *u8) -> i64 { __syscall(258, 0-100, path, 0x1ed, 0, 0, 0); return 0 } called by 1: main |
| 11 | func main() -> i64 |