Index: globalconst.h =================================================================== --- globalconst.h (.../librnd/core/globalconst.h) (revision 30973) +++ globalconst.h (.../globalconst.h) (revision 30974) @@ -26,16 +26,11 @@ * */ -#ifndef RND_GLOBALCONST_H -#define RND_GLOBALCONST_H +#ifndef PCB_GLOBALCONST_H +#define PCB_GLOBALCONST_H -#include +#include -#define RND_LARGE_VALUE (RND_COORD_MAX / 2 - 1) /* maximum extent of board and elements */ - -#define RND_MAX_COORD ((rnd_coord_t)RND_LARGE_VALUE) /* coordinate limits */ -#define RND_MIN_SIZE 0 - #define PCB_MAX_LAYER 38 /* max number of layer, check source code for more changes, a *lot* more changes */ /* new array size that allows substrate layers */ #define PCB_MAX_LAYERGRP ((PCB_MAX_LAYER+8)*2) /* max number of layer groups, a.k.a. physical layers: a few extra outer layers per side, pluse one substrate per real layer */ @@ -54,22 +49,6 @@ #define PCB_MAX_BUFFER 5 /* number of pastebuffers additional changes in menu.c are also required to select more buffers */ -#ifndef RND_PATH_MAX /* maximum path length */ -#ifdef PATH_MAX -#define RND_PATH_MAX PATH_MAX -#else -#define RND_PATH_MAX 2048 -#endif -#endif - -/* number of dynamic flag bits that can be allocated at once; should be n*64 for - memory efficiency */ -#define RND_DYNFLAG_BLEN 64 - -#define RND_MAX_LINE_POINT_DISTANCE 0 /* maximum distance when searching line points; same for arc point */ -#define RND_MAX_POLYGON_POINT_DISTANCE 0 /* maximum distance when searching polygon points */ -#define RND_MAX_NETLIST_LINE_LENGTH 255 /* maximum line length for netlist files */ -#define RND_MIN_GRID_DISTANCE 4 /* minimum distance between point to enable grid drawing */ #define PCB_EMARK_SIZE PCB_MIL_TO_COORD(10) /* size of diamond element mark */ #define PCB_SUBC_AUX_UNIT PCB_MM_TO_COORD(1) /* size of the unit vector for the subc-aux layer */