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 spinel wrapper 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 :binstr FFI return mode: documented :binstr as 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 :str would truncate.

Co-Authored-By: Claude Opus 4.8 [email protected]

Details

Commit
dbc146ebb728
Parent
a624878b9aab

README.mdmodifiedView file

@@ -422,13 +422,10 @@
422422 Generated C includes the header and links the archive; `--gc-sections`
423423 drops every unused runtime function from the final binary.
424424
425-The parser has two implementations:
426-- **src/spinel_parse.c** links libprism directly (no CRuby needed)
427-- **spinel_parse.rb** uses the Prism gem (CRuby fallback)
428-
429-Both produce identical AST output; the C path is the default.
430-`require_relative` is resolved at parse time by inlining the
431-referenced file.
425+The parser is **src/spinel_parse.c**, which links libprism directly (no
426+CRuby needed) and emits the text AST that both the C compiler and the
427+legacy backend consume. `require_relative` is resolved at parse time by
428+inlining the referenced file.
432429
433430 ## Building
434431