参考所有分组,完成尽量多的内容。禁止顺手扩功能 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
|
||||
|
||||
@@ -23,7 +23,7 @@ only; it must not add CNC behavior and must not expand the temporary smoke parse
|
||||
| `core/wasm_shims/rcs_print_shim.cc` | `src/libnml/rcs/rcs_print.cc` | Provides LinuxCNC RCS print diagnostics used by NML validation. |
|
||||
| `core/wasm_shims/rtapi_compat.cc` | `src/rtapi/uspace_common.h`, `src/rtapi/rtapi.h` | Provides userspace RTAPI formatting declarations used by RS274/NML code. |
|
||||
| `core/wasm_shims/tooldata/tooldata_mmap_backend.cc` | `src/emc/tooldata/tooldata_mmap.cc` | Replaces native mmap storage with an in-memory WASM-safe backend for probes. |
|
||||
| `core/wasm_shims/tooldata/tooldata_runtime_stubs.cc` | `src/emc/tooldata/tooldata_nml.cc`, `src/emc/tooldata/tooldata_db.cc` | Satisfies NML and external tool database entry points without native services. |
|
||||
| `core/wasm_shims/tooldata/tooldata_runtime_stubs.cc` | `src/emc/tooldata/tooldata_nml.cc`, `src/emc/tooldata/tooldata_db.cc` | Satisfies NML and external tool database entry points without native services, preserving inactive-DB return values. |
|
||||
| `core/wasm_shims/pythonplugin/python_plugin.cc` | `src/emc/pythonplugin/python_plugin.cc`, `src/emc/pythonplugin/python_plugin.hh` | Keeps LinuxCNC PythonPlugin API available while Python execution is disabled for browser-safe probes. |
|
||||
|
||||
## Boundaries
|
||||
|
||||
Reference in New Issue
Block a user