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

This commit is contained in:
cnc
2026-06-02 10:24:59 +08:00
parent 5f4e918663
commit 820ac7e72b
4 changed files with 9 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
#include <cstddef>
// LinuxCNC source basis: src/emc/rs274ngc/interp_internal.hh maps _() to
// gettext(), and RS274 sources wrap interpreter diagnostics with _().
extern "C" char *gettext(const char *msgid) {
return const_cast<char *>(msgid ? msgid : "");
}

View File

@@ -1,6 +1,8 @@
#ifndef CNC_SIM_WASM_SHIMS_LIBGEN_H
#define CNC_SIM_WASM_SHIMS_LIBGEN_H
/* LinuxCNC source basis: src/emc/rs274ngc/interp_o_word.cc uses basename()
while resolving O-word subroutine names. */
#ifdef __cplusplus
extern "C" {
#endif

View File

@@ -2,6 +2,8 @@
#include "boost/python/object.hpp"
// LinuxCNC source basis: src/emc/rs274ngc/gcodemodule.cc includes
// structmember.h for PyMemberDef entries using T_INT, T_DOUBLE, and READONLY.
#define T_INT 1
#define T_DOUBLE 2
#define READONLY 1