Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
373 changes: 373 additions & 0 deletions scripts/include-dep-report.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ SUBDIRS := \
\
$(GUI_SUBDIRS) \
emc/usr_intf/axis emc/usr_intf emc/nml_intf emc/task emc/kinematics emc/tp emc/canterp \
emc/motion emc/ini emc/rs274ngc emc/sai emc/pythonplugin \
emc/ini emc/rs274ngc emc/sai emc/pythonplugin \
emc/motion-logger \
emc/tooldata \
emc \
Expand Down Expand Up @@ -403,7 +403,7 @@ SRCHEADERS := \
hal/drivers/mesa-hostmot2/hostmot2-serial.h \
emc/linuxcnc.h \
emc/kinematics/kinematics.h \
emc/motion/emcmotcfg.h \
emc/nml_intf/emcmotcfg.h \
emc/ini/inifile.hh \
emc/ini/inifile.h \
emc/nml_intf/emcpos.h \
Expand Down
2 changes: 1 addition & 1 deletion src/emc/canterp/canterp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
#include "nml_intf/interp_return.hh"
#include "nml_intf/canon.hh"
#include "rs274ngc/interp_base.hh"
#include "rs274ngc/modal_state.hh"
#include "nml_intf/modal_state.hh"

static char the_command[LINELEN] = { 0 }; // our current command
static char the_command_name[LINELEN] = { 0 }; // just the name part
Expand Down
6 changes: 0 additions & 6 deletions src/emc/motion/Submakefile

This file was deleted.

2 changes: 1 addition & 1 deletion src/emc/motion/control.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "config.h"
#include "homing.h"
#include "axis.h"
#include "state_tag.h"
#include "../nml_intf/state_tag.h"

// Mark strings for translation, but defer translation to userspace
#define _(s) (s)
Expand Down
2 changes: 1 addition & 1 deletion src/emc/motion/motion.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ to another.
#include <kinematics.h>

#include "simple_tp.h"
#include "state_tag.h"
#include "../nml_intf/state_tag.h"
#include "../tp/tp_types.h"

// define a special value to denote an invalid motion ID
Expand Down
3 changes: 2 additions & 1 deletion src/emc/nml_intf/Submakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

LIBEMCSRCS := \
emc/nml_intf/emcglb.c \
emc/rs274ngc/modal_state.cc \
emc/nml_intf/modal_state.cc \
emc/nml_intf/emc.cc \
emc/nml_intf/emcpose.c \
emc/nml_intf/emcargs.cc \
Expand All @@ -26,6 +26,7 @@ TARGETS += ../lib/liblinuxcnc.a
@$(AR) $(ARFLAGS) $@ $^

EMCNMLINTFINCS = \
./emc/nml_intf/emcmotcfg.h \
./emc/nml_intf/emcpos.h \
./emc/nml_intf/emcpose.h \
./emc/nml_intf/motion_types.h
Expand Down
2 changes: 1 addition & 1 deletion src/emc/nml_intf/canon.hh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "emctool.h"
#include "canon_position.hh"
#include <emcmotcfg.h> // Just for EMCMOT_NUM_SPINDLES
#include "rs274ngc/modal_state.hh"
#include "modal_state.hh"

/*
This is the header file that all applications that use the
Expand Down
2 changes: 1 addition & 1 deletion src/emc/nml_intf/emc.hh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "libnml/nml/nml_type.hh"
#include "motion_types.h"
#include <stdint.h>
#include "rs274ngc/modal_state.hh"
#include "modal_state.hh"

// Forward class declarations
class EMC_JOINT_STAT;
Expand Down
4 changes: 2 additions & 2 deletions src/emc/nml_intf/emc_nml.hh
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
#include "libnml/rcs/rcs.hh"
#include "libnml/nml/cmd_msg.hh"
#include "libnml/nml/stat_msg.hh"
#include "rs274ngc/modal_state.hh"
#include "modal_state.hh"
#include "canon.hh" // CANON_TOOL_TABLE, CANON_UNITS
#include "rs274ngc/rs274ngc.hh" // ACTIVE_G_CODES, etc
#include "interp_codes.h" // ACTIVE_G_CODES, etc

// ------------------
// CLASS DECLARATIONS
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion src/emc/nml_intf/emcops.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* Last change:
********************************************************************/

#include "libnml/rcs/rcs_print.hh"
#include "emc.hh"
#include "emc_nml.hh"
#include "tooldata/tooldata.hh"
Expand Down Expand Up @@ -221,7 +222,7 @@ EMC_TOOL_STAT& EMC_TOOL_STAT::operator =(const EMC_TOOL_STAT& s)
#else //}{
struct CANON_TOOL_TABLE tdata;
if (tooldata_get(&tdata,0) != IDX_OK) {
fprintf(stderr,"UNEXPECTED idx %s %d\n",__FILE__,__LINE__);
rcs_print_error("UNEXPECTED idx %s %d\n",__FILE__,__LINE__);
}
toolTableCurrent = tdata;
#endif //}
Expand Down
23 changes: 23 additions & 0 deletions src/emc/nml_intf/interp_codes.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#ifndef __LINUXCNC_INTERP_CODES_H
#define __LINUXCNC_INTERP_CODES_H
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

/* Sizes of the arrays of active codes that the interpreter reports and
the status message carries. */
#define ACTIVE_G_CODES 17
#define ACTIVE_M_CODES 10
#define ACTIVE_SETTINGS 5

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
********************************************************************/
#include "interp_base.hh"
#include "modal_state.hh"
#include <string.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

// Bring in C struct for a state tag from motion
extern "C" {
#include "motion/state_tag.h"
#include "state_tag.h"
}

/**
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/emc/rs274ngc/Submakefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ LIBRS274SRCS := $(addprefix emc/rs274ngc/, \
interp_write.cc \
interp_o_word.cc \
interp_g7x.cc \
modal_state.cc \
nurbs_additional_functions.cc \
interp_namedparams.cc \
interp_python.cc \
Expand All @@ -32,6 +31,7 @@ LIBRS274SRCS := $(addprefix emc/rs274ngc/, \
interpmodule.cc \
rs274ngc_pre.cc \
interp_inspection.cc)
LIBRS274SRCS += emc/nml_intf/modal_state.cc
USERSRCS += $(LIBRS274SRCS)

$(call TOOBJSDEPS, $(LIBRS274SRCS)) : EXTRAFLAGS+=-fPIC $(BOOST_DEBUG_FLAGS)
Expand Down
8 changes: 2 additions & 6 deletions src/emc/rs274ngc/interp_base.hh
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,8 @@
#include <stdlib.h>
#include <boost/noncopyable.hpp>
#include <emcpos.h>
#include "modal_state.hh"

/* Size of certain arrays */
#define ACTIVE_G_CODES 17
#define ACTIVE_M_CODES 10
#define ACTIVE_SETTINGS 5
#include "../nml_intf/modal_state.hh"
#include "../nml_intf/interp_codes.h"

class InterpBase : boost::noncopyable {
public:
Expand Down
1 change: 1 addition & 0 deletions src/emc/rs274ngc/rs274ngc_interp.hh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#ifndef RS274NGC_INTERP_H
#define RS274NGC_INTERP_H
#include <stdio.h> // FILE
#include "rs274ngc.hh"
#include "interp_internal.hh"
#include "nml_intf/interp_return.hh"
Expand Down
1 change: 1 addition & 0 deletions src/emc/sai/dummyemcstat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/
// keep linker happy so TaskMod can be resolved

#include <stdio.h>
#include "libnml/rcs/rcs.hh" // NML classes, nmlErrorFormat()
#include "nml_intf/emc.hh" // EMC NML
#include "nml_intf/emc_nml.hh"
Expand Down
5 changes: 3 additions & 2 deletions src/emc/task/emccanon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,15 @@
#include <math.h>
#include <string.h> // strncpy()
#include <ctype.h> // isspace()
#include "libnml/rcs/rcs_print.hh"
#include "nml_intf/emc.hh" // EMC NML
#include "nml_intf/emc_nml.hh"
#include "nml_intf/canon.hh"
#include "nml_intf/canon_position.hh" // data type for a machine position
#include "nml_intf/interpl.hh" // interp_list
#include "nml_intf/emcglb.h" // TRAJ_MAX_VELOCITY
#include <rtapi_string.h>
#include "rs274ngc/modal_state.hh"
#include "nml_intf/modal_state.hh"
#include "tooldata/tooldata.hh"
#include <algorithm>

Expand Down Expand Up @@ -3703,7 +3704,7 @@ CANON_TOOL_TABLE GET_EXTERNAL_TOOL_TABLE(int idx)
tdata.orientation = 0;
} else {
if (tooldata_get(&tdata,idx) != IDX_OK) {
fprintf(stderr,"UNEXPECTED idx %s %d\n",__FILE__,__LINE__);
rcs_print_error("UNEXPECTED idx %s %d\n",__FILE__,__LINE__);
}
}
return tdata;
Expand Down
3 changes: 3 additions & 0 deletions src/emc/task/emcsvr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
* Last change:
********************************************************************/

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>

#include "libnml/rcs/rcs.hh" // EMC NML
Expand Down
1 change: 1 addition & 0 deletions src/emc/task/emctask.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Last change:
********************************************************************/

#include <stdio.h>
#include <stdlib.h>
#include <rtapi_string.h> // rtapi_strlcpy()
#include <sys/stat.h> // struct stat
Expand Down
1 change: 1 addition & 0 deletions src/emc/task/taskintf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*
********************************************************************/

#include <stdio.h>
#include <cmath>
#include <float.h> // DBL_MAX
#include <string.h> // memcpy() strncpy()
Expand Down
1 change: 1 addition & 0 deletions src/emc/tooldata/tool_watch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include <stdio.h>
#include "nml_intf/emc.hh"
#include "nml_intf/emc_nml.hh"
#include <unistd.h>
Expand Down
2 changes: 1 addition & 1 deletion src/emc/tp/tc_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <emcmotcfg.h>

#include "spherical_arc.h"
#include "../motion/state_tag.h"
#include "../nml_intf/state_tag.h"

#define BLEND_DIST_FRACTION 0.5
/* values for endFlag */
Expand Down
3 changes: 3 additions & 0 deletions src/emc/usr_intf/axis/extensions/emcmodule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

#define PY_SSIZE_T_CLEAN
#include <stdio.h>
#include <stdlib.h>
#include <Python.h>
#include <structseq.h>
#include <pthread.h>
Expand All @@ -26,6 +28,7 @@
#include "libnml/rcs/rcs.hh"
#include "nml_intf/emc.hh"
#include "nml_intf/emc_nml.hh"
#include "nml_intf/debugflags.h"
#include <kinematics.h>
#include "config.h"
#include <inifile.hh>
Expand Down
2 changes: 2 additions & 0 deletions src/emc/usr_intf/shcom.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* Last change:
********************************************************************/

#include <stdio.h>
#include <unistd.h>
#include <fmt/format.h>

#include <rtapi_string.h>
Expand Down
2 changes: 1 addition & 1 deletion src/hal/Submakefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $(HALLIB).0: $(call TOOBJS, $(HALLIBSRCS))
@rm -f $@
$(Q)$(CC) $(LDFLAGS) -Wl,-soname,$(notdir $@) -shared -o $@ $^ $(HALLIB_LIBS) $(ULAPI_LDFLAGS)

HALMODULESRCS := hal/halmodule.cc hal/utils/setps_util.c hal/halquery.cc
HALMODULESRCS := hal/halmodule.cc hal/setps_util.c hal/halquery.cc
PYSRCS += $(HALMODULESRCS)

HALMODULE := ../lib/python/_hal.so
Expand Down
2 changes: 2 additions & 0 deletions src/hal/classicladder/files.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <stdio.h> // FILE

#ifndef S_LINE
//#define S_LINE "<!--"
//#define E_LINE "-->"
Expand Down
2 changes: 1 addition & 1 deletion src/hal/halmodule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <hal.h>

#include "halqrec.hh"
#include "utils/setps_util.h"
#include "setps_util.h"

#define EXCEPTION_IF_NOT_LIVE(retval) do { \
if(self->hal_id <= 0) { \
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions src/hal/utils/Submakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ HALCMDSRCS := \
hal/utils/halcmd.c \
hal/utils/halcmd_commands.cc \
hal/utils/halcmd_main.c \
hal/utils/setps_util.c
hal/setps_util.c

HALSHSRCS := \
hal/utils/halcmd.c \
hal/utils/halcmd_commands.cc \
hal/utils/halsh.c \
hal/utils/setps_util.c
hal/setps_util.c

ifneq ($(READLINE_LIBS),)
HALCMDSRCS += hal/utils/halcmd_completion.c
Expand All @@ -33,7 +33,7 @@ endif
$(Q)$(CXX) $(LDFLAGS) -o $@ $^ $(READLINE_LIBS) -lfmt
TARGETS += ../bin/halcmd

HALRMTSRCS := hal/utils/halrmt.cc hal/utils/setps_util.c
HALRMTSRCS := hal/utils/halrmt.cc hal/setps_util.c
USERSRCS += $(HALRMTSRCS)

../bin/halrmt: $(call TOOBJS, $(HALRMTSRCS)) ../lib/liblinuxcnchal.so.0 ../lib/liblinuxcncini.so.1
Expand Down
2 changes: 1 addition & 1 deletion src/hal/utils/halcmd_commands.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
#include <vector>
#include <fmt/format.h>

#include "setps_util.h"
#include "hal/setps_util.h"

static int unloadrt_comp(const char *mod_name);
static void print_comp_info(const char **patterns);
Expand Down
2 changes: 1 addition & 1 deletion src/hal/utils/halrmt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
#include <hal.h>
#include <inifile.hh>

#include "setps_util.h"
#include "hal/setps_util.h"

using namespace linuxcnc;

Expand Down
1 change: 1 addition & 0 deletions src/hal/utils/scope_usr.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
*/

/* import the shared declarations */
#include <stdio.h> // FILE
#include "scope_shm.h"

/***********************************************************************
Expand Down
1 change: 0 additions & 1 deletion src/rtapi/uspace_rtapi_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
#include <boost/lockfree/queue.hpp>

#include "rtapi.h"
#include <hal.h>
#include "uspace_common.h"

static RtapiApp &App();
Expand Down