参考所有分组,完成尽量多的内容。禁止顺手扩功能 smoke:锁定tooldata未激活DB语义
结论:按 LinuxCNC src/emc/tooldata/tooldata_db.cc 锁定 tooldata_db_getall() 未激活返回 -1、tooldata_db_notify() 未激活返回 0 的 WASM shim 探针与 source-map 守卫;不启用外部 DB 服务,不扩展 smoke 解析。
This commit is contained in:
@@ -15,6 +15,9 @@ source-link/shim guard only; it must not add CNC behavior and must not expand th
|
||||
- `src/emc/tooldata/tooldata_nml.cc` provides the NML tool table registration
|
||||
backend selected by `TOOL_NML_FLAG`.
|
||||
- `src/emc/tooldata/tooldata_db.cc` provides external database entry points.
|
||||
- `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/tooldata.hh` declares the tooldata API used by RS274 and
|
||||
@@ -40,6 +43,8 @@ source-link/shim guard only; it must not add CNC behavior and must not expand th
|
||||
they must not become browser API fields or generated switchkins aliases.
|
||||
- WASM-safe tooldata shims must preserve the LinuxCNC export surface checked by
|
||||
symbol probes.
|
||||
- WASM-safe tooldata runtime stubs must keep external database services
|
||||
unavailable while preserving LinuxCNC inactive-DB return values.
|
||||
- Native and source-link paths must keep the full LinuxCNC `src/emc/tooldata`
|
||||
source directory tracked in the native RS274 manifest.
|
||||
- `build-wasm.sh` must run tooldata link and symbol probes before copying
|
||||
|
||||
Reference in New Issue
Block a user