Commit dbc146eb
dbc146ebb728Merged
Yukihiro "Matz" Matsumoto <[email protected]> · 5 months ago · 2 files · ~2 modified
Description
docs: refresh stale legacy-era references in README and FFI
Two documents still described the pre-C-rewrite architecture:
-
README claimed the parser had two implementations (src/spinel_parse.c and a Ruby spinel_parse.rb Prism-gem fallback). The Ruby parser was retired -- spinel_parse.rb no longer exists anywhere, including under legacy/ -- so the parser is now solely src/spinel_parse.c, which emits the text AST both the C compiler and the legacy backend consume.
-
FFI.md said the
spinelwrapper script scrapes SPINEL_LINK/CFLAGS with sed; the driver was folded into the single spinel binary, which now scrapes them in-process. It also predated the:binstrFFI return mode: documented:binstras a binary-safe, return-only string variant that uses an exact byte count (sp_net_bin_len) instead of strlen, so embedded NUL bytes survive where:strwould truncate.
Co-Authored-By: Claude Opus 4.8 [email protected]
Details
- Commit
- dbc146ebb728
- Parent
- a624878b9aab
README.mdmodifiedView file
Generated C includes the header and links the archive; `--gc-sections`drops every unused runtime function from the final binary.The parser has two implementations:- **src/spinel_parse.c** links libprism directly (no CRuby needed)- **spinel_parse.rb** uses the Prism gem (CRuby fallback)Both produce identical AST output; the C path is the default.`require_relative` is resolved at parse time by inlining thereferenced file.The parser is **src/spinel_parse.c**, which links libprism directly (noCRuby needed) and emits the text AST that both the C compiler and thelegacy backend consume. `require_relative` is resolved at parse time byinlining the referenced file.## Buildingdocs/FFI.mdmodifiedView file
Loading diff…