按 align-linuxcnc 约束补 tooldata shim 源码依据
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user