按 align-linuxcnc 约束补 tooldata shim 源码依据

This commit is contained in:
cnc
2026-06-02 11:01:22 +08:00
parent 518628bfea
commit e117ac8a5b
4 changed files with 10 additions and 0 deletions

View File

@@ -3,6 +3,8 @@
#include "nml_intf/canon.hh"
#include "nml_intf/emc_nml.hh"
// LinuxCNC source basis: src/emc/tooldata/tooldata.hh declares the tooldata
// API used by taskclass.cc, emccanon.cc, and RS274 tool table paths.
extern "C" {
typedef enum {

View File

@@ -4,6 +4,9 @@
#include <cstdio>
#include <unistd.h>
// LinuxCNC source basis: src/emc/tooldata/tooldata_mmap.cc provides these
// tool_mmap and indexed tool table entry points; this shim keeps them
// available for WASM without native mmap.
namespace {
CANON_TOOL_TABLE tool_table[CANON_POCKETS_MAX];

View File

@@ -3,6 +3,8 @@
#include <cstring>
#include <unistd.h>
// LinuxCNC source basis: src/emc/tooldata/tooldata_nml.cc and tooldata_db.cc
// provide the NML registration and external tool database entry points.
namespace {
constexpr int MAX_DB_PROGRAM_ARGS = 10;