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