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
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
*
* License: GPL Version 2
********************************************************************/
#ifndef NURBS_MATH_HH
#define NURBS_MATH_HH
#ifndef __LINUXCNC_NML_INTF_NURBS_MATH_HH
#define __LINUXCNC_NML_INTF_NURBS_MATH_HH

#include <vector>
#include <nml_intf/canon.hh> // NURBS_CONTROL_POINT, NURBS_G6_CONTROL_POINT, NURBS_PLANE_POINT
#include "canon.hh" // NURBS_CONTROL_POINT, NURBS_G6_CONTROL_POINT, NURBS_PLANE_POINT

/* Additional functions needed to calculate nurbs G5 points */

Expand All @@ -23,7 +23,7 @@ double nurbs_G5_Rden(double u, unsigned int k,
const std::vector<NURBS_CONTROL_POINT>& nurbs_control_points,
const std::vector<unsigned int>& knot_vector);

NURBS_PLANE_POINT nurbs_G5_point(double u, unsigned int k,
NURBS_PLANE_POINT nurbs_G5_point(double u, unsigned int k,
const std::vector<NURBS_CONTROL_POINT>& nurbs_control_points,
const std::vector<unsigned int>& knot_vector);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

#ifndef INTERP_BASE_HH
#define INTERP_BASE_HH
#ifndef __LINUXCNC_RS274NGC_INTERP_BASE_HH
#define __LINUXCNC_RS274NGC_INTERP_BASE_HH

#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <boost/noncopyable.hpp>
#include <emcpos.h>
#include <nml_intf/modal_state.hh>
#include <nml_intf/interp_codes.h>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file interp_fwd.hh
*
*
* Forward declarations for interp_internal.hh.
*
* @author Robert W. Ellenberg <rwe24g@gmail.com>
Expand All @@ -11,8 +11,8 @@
* GNU General Public License (V2) as published by the Free Software Foundation.
*/

#ifndef INTERP_FWD_HH
#define INTERP_FWD_HH
#ifndef __LINUXCNC_RS274NGC_INTERP_FWD_HH
#define __LINUXCNC_RS274NGC_INTERP_FWD_HH

class Interp;

Expand Down
23 changes: 23 additions & 0 deletions include/rs274ngc/rs274ngc.hh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/********************************************************************
* Description: rs274ngc.hh
*
* Derived from a work by Thomas Kramer
*
* Author:
* License: GPL Version 2
* System: Linux
*
* Copyright (c) 2004 All rights reserved.
*
********************************************************************/
#ifndef __LINUXCNC_RS274NGC_RS274NGC_HH
#define __LINUXCNC_RS274NGC_RS274NGC_HH

#include "interp_base.hh"
#include "interp_fwd.hh"

// Declare class so that we can use it in the typedef.
class Interp;
typedef int (Interp::*read_function_pointer) (char *, int *, block_pointer, double *);

#endif
2 changes: 1 addition & 1 deletion scripts/runtests.in
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fi
export PYTHON_CPPFLAGS="@PYTHON_CPPFLAGS@"
export PYTHON_EXTRA_LIBS="@PYTHON_EXTRA_LIBS@"
export PYTHON_EXTRA_LDFLAGS="@PYTHON_EXTRA_LDFLAGS@"
export PYTHON_LIBS="@PYTHON_EXTRA_LIBS@"
export PYTHON_LIBS="@PYTHON_LIBS@"

RUNTESTS="$(readlink -f "$0")"
export RUNTESTS
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 @@ -57,7 +57,7 @@
#include <linuxcnc.h>
#include "nml_intf/interp_return.hh"
#include <nml_intf/canon.hh>
#include "rs274ngc/interp_base.hh"
#include <rs274ngc/interp_base.hh>
#include <nml_intf/modal_state.hh>

static char the_command[LINELEN] = { 0 }; // our current command
Expand Down
4 changes: 0 additions & 4 deletions src/emc/rs274ngc/gcode_renderer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@

#include <algorithm>
#include <float.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include <nml_intf/canon.hh>

Expand Down
6 changes: 2 additions & 4 deletions src/emc/rs274ngc/gcodemodule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,18 @@

#include <algorithm>
#include <chrono>
#include <float.h>
#include <memory>
#include <tuple>

#include "rs274ngc.hh"
#include <rs274ngc/rs274ngc.hh>
#include "rs274ngc_interp.hh"
#include "nml_intf/interp_return.hh"
#include <nml_intf/canon.hh>
#include "nml_intf/nurbs_math.hh"
#include <nml_intf/nurbs_math.hh>
#include <axis_kinds.hh>
#include <kinematics.h> // KINEMATICS_IDENTITY
#include <kinematics_user.h>
#include <hal.h>
#include <unistd.h>

int _task = 0; // control preview behaviour when remapping

Expand Down
14 changes: 1 addition & 13 deletions src/emc/rs274ngc/interp_arc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,7 @@
*
* Last change:
********************************************************************/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <libintl.h>
#include "rs274ngc.hh"
#include <rs274ngc/rs274ngc.hh>
#include "rs274ngc_return.hh"
#include "rs274ngc_interp.hh"
#include "interp_internal.hh"
Expand Down
2 changes: 1 addition & 1 deletion src/emc/rs274ngc/interp_array_types.hh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/
#ifndef INTERP_ARRAY_TYPES_HH
#define INTERP_ARRAY_TYPES_HH
#include "interp_base.hh"
#include <rs274ngc/interp_base.hh>
#include "paramclass.hh"
#include "array1.hh"

Expand Down
5 changes: 2 additions & 3 deletions src/emc/rs274ngc/interp_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include "interp_base.hh"
#include <rs274ngc/interp_base.hh>
#include <dlfcn.h>
#include <config.h>
#include <stdio.h>
#include "config.h"

InterpBase::~InterpBase() {}

Expand Down
10 changes: 1 addition & 9 deletions src/emc/rs274ngc/interp_check.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,7 @@
*
* Last change:
********************************************************************/
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "rs274ngc.hh"
#include <rs274ngc/rs274ngc.hh>
#include "rs274ngc_return.hh"
#include "interp_internal.hh"
#include "rs274ngc_interp.hh"
Expand Down
14 changes: 2 additions & 12 deletions src/emc/rs274ngc/interp_convert.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,14 @@
* Copyright (c) 2004 All rights reserved.
*
********************************************************************/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string>
#include "rs274ngc.hh"
#include <rs274ngc/rs274ngc.hh>
#include "rs274ngc_return.hh"
#include "rs274ngc_interp.hh"
#include "interp_internal.hh"
#include "interp_queue.hh"
#include "interp_parameter_def.hh"
#include "interp_log.hh"
#include <kinematics.h> // KINSTYPE_IDENTITY, SWITCHKINS_MAX_TYPES

#include "units.h"
Expand Down
10 changes: 1 addition & 9 deletions src/emc/rs274ngc/interp_cycles.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,7 @@
* Copyright (c) 2004 All rights reserved.
*
********************************************************************/
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "rs274ngc.hh"
#include <rs274ngc/rs274ngc.hh>
#include "rs274ngc_return.hh"
#include "interp_internal.hh"
#include "rs274ngc_interp.hh"
Expand Down
13 changes: 1 addition & 12 deletions src/emc/rs274ngc/interp_execute.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,7 @@
*
* Last change:
********************************************************************/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "rs274ngc.hh"
#include <rs274ngc/rs274ngc.hh>
#include "rs274ngc_return.hh"
#include "interp_internal.hh"
#include "rs274ngc_interp.hh"
Expand Down
13 changes: 1 addition & 12 deletions src/emc/rs274ngc/interp_find.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,7 @@
*
* Last change:
********************************************************************/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "rs274ngc.hh"
#include <rs274ngc/rs274ngc.hh>
#include "nml_intf/interp_return.hh"
#include "interp_internal.hh"
#include "rs274ngc_interp.hh"
Expand Down
2 changes: 1 addition & 1 deletion src/emc/rs274ngc/interp_g7x.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ void g7x::add_distance(double distance) {
#include <cmath>
#include <cstring>
#include <string>
#include "rs274ngc.hh"
#include <rs274ngc/rs274ngc.hh>
#include "rs274ngc_interp.hh"
#include "interp_internal.hh"

Expand Down
2 changes: 1 addition & 1 deletion src/emc/rs274ngc/interp_inspection.hh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef INTERP_INSPECTION_HH
#define INTERP_INSPECTION_HH

#include "interp_fwd.hh"
#include <rs274ngc/interp_fwd.hh>

double &currentX(setup_pointer s);
double &currentY(setup_pointer s);
Expand Down
12 changes: 2 additions & 10 deletions src/emc/rs274ngc/interp_internal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,11 @@
*
* Last change:
********************************************************************/
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "rs274ngc.hh"
#include <rs274ngc/rs274ngc.hh>
#include "rs274ngc_return.hh"
#include "interp_internal.hh" // interpreter private definitions
#include "rs274ngc_interp.hh"
#include <string.h>
#include "interp_log.hh"

/****************************************************************************/

Expand Down
5 changes: 2 additions & 3 deletions src/emc/rs274ngc/interp_internal.hh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <algorithm>
#include <linuxcnc.h>
#include <limits.h>
#include <stdio.h>
#include <set>
#include <map>
#include <vector>
Expand All @@ -28,8 +27,8 @@
#include <boost/python/object_fwd.hpp>
#include <cmath>
#include "interp_parameter_def.hh"
#include "interp_fwd.hh"
#include "interp_base.hh"
#include <rs274ngc/interp_fwd.hh>
#include <rs274ngc/interp_base.hh>
#include <axis_kinds.hh>


Expand Down
10 changes: 1 addition & 9 deletions src/emc/rs274ngc/interp_inverse.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,7 @@
*
* Last change:
********************************************************************/
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "rs274ngc.hh"
#include <rs274ngc/rs274ngc.hh>
#include "nml_intf/interp_return.hh"
#include "interp_internal.hh"
#include "interp_queue.hh"
Expand Down
Loading