尽快推进:收紧tooldata工具源码锚点

This commit is contained in:
cnc
2026-06-05 08:43:29 +08:00
parent 77e92b0116
commit abaebe7940
2 changed files with 32 additions and 2 deletions

View File

@@ -18,8 +18,12 @@ source-link/shim guard only; it must not add CNC behavior and must not expand th
- `src/emc/tooldata/tooldata_db.cc` returns `-1` from
`tooldata_db_getall()` when the external DB is not live, and returns `0`
from `tooldata_db_notify()` without side effects in that same state.
- `src/emc/tooldata/tool_mmap_read.cc` and `src/emc/tooldata/tool_watch.cc` are
utility sources from the same LinuxCNC tooldata build metadata.
- `src/emc/tooldata/tool_mmap_read.cc` is the mmap tool table reader utility
source from the same LinuxCNC tooldata build metadata; it reads through
`tool_mmap_user()`, `tooldata_last_index_get()`, and `tooldata_get()`.
- `src/emc/tooldata/tool_watch.cc` is the NML/mmap tool table watcher utility
source from the same LinuxCNC tooldata build metadata; it reads
`EMC_STAT::io.tool` fields through `RCS_STAT_CHANNEL`.
- `src/emc/tooldata/tooldata.hh` declares the tooldata API used by RS274 and
WASM-safe shims.