按 align-linuxcnc 约束补状态 shim 源码依据
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include "nml_intf/emc_nml.hh"
|
||||
|
||||
// LinuxCNC src/emc/sai/dummyemcstat.cc uses the same source-backed status
|
||||
// object when the interpreter runs without the task controller.
|
||||
// LinuxCNC source basis: src/emc/sai/dummyemcstat.cc defines the same
|
||||
// source-backed status object when the interpreter runs without task.
|
||||
EMC_STAT *emcStatus = new EMC_STAT;
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
#include <cstring>
|
||||
|
||||
// LinuxCNC source basis: src/libnml/nml/nmlmsg.cc and stat_msg.cc provide
|
||||
// these NML status constructors for source-linked EMC status objects.
|
||||
int NMLmsg::automatically_clear = 1;
|
||||
|
||||
NMLmsg::NMLmsg(NMLTYPE t, long s) {
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#include <cstdarg>
|
||||
#include <cstdio>
|
||||
|
||||
// LinuxCNC source basis: src/libnml/rcs/rcs_print.cc provides these RCS
|
||||
// print-error entry points used by NML message validation.
|
||||
extern "C" int set_print_rcs_error_info(const char *, int) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#include <cstdarg>
|
||||
#include <cstdio>
|
||||
|
||||
// LinuxCNC source basis: src/rtapi/rtai_rtapi.c provides rtapi_snprintf()
|
||||
// for RTAPI-compatible formatting call sites.
|
||||
extern "C" int rtapi_snprintf(char *buf, unsigned long size, const char *fmt, ...) {
|
||||
va_list ap;
|
||||
va_start(ap, fmt);
|
||||
@@ -8,4 +10,3 @@ extern "C" int rtapi_snprintf(char *buf, unsigned long size, const char *fmt, ..
|
||||
va_end(ap);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user