Index: trunk/src/global_typedefs.h =================================================================== --- trunk/src/global_typedefs.h (revision 26930) +++ trunk/src/global_typedefs.h (revision 26931) @@ -35,6 +35,12 @@ }; typedef struct pcb_hidlib_s pcb_hidlib_t; + + +/* typedef ... pcb_coord_t; pcb base unit, typedef'd in config.h */ +typedef double pcb_angle_t; /* degrees */ +typedef struct pcb_unit_s pcb_unit_t; + typedef struct pcb_board_s pcb_board_t; typedef struct pcb_data_s pcb_data_t; typedef struct pcb_layer_stack_s pcb_layer_stack_t; @@ -98,6 +104,4 @@ #include "pcb_bool.h" -#include "unit.h" - #endif Index: trunk/src/hid_attrib.c =================================================================== --- trunk/src/hid_attrib.c (revision 26930) +++ trunk/src/hid_attrib.c (revision 26931) @@ -293,7 +293,6 @@ for (; numa > 0; numa--,a++) { const char *help; if (a->help_text == NULL) help = ""; - else if (a->help_text == ATTR_UNDOCUMENTED) help = ""; else help = a->help_text; pcb_hid_usage_option(a->name, help); } Index: trunk/src/hid_attrib.h =================================================================== --- trunk/src/hid_attrib.h (revision 26930) +++ trunk/src/hid_attrib.h (revision 26931) @@ -186,8 +186,6 @@ struct pcb_hid_attribute_s { const char *name; - /* If the help_text is this, usage() won't show this option */ -#define ATTR_UNDOCUMENTED ((char *)(1)) const char *help_text; pcb_hids_t type; int min_val, max_val; /* for integer and real */ Index: trunk/src/polygon1_gen.c =================================================================== --- trunk/src/polygon1_gen.c (revision 26930) +++ trunk/src/polygon1_gen.c (revision 26931) @@ -35,6 +35,7 @@ #include "global_typedefs.h" #include "polyarea.h" #include "math_helper.h" +#include "unit.h" #include "polygon1_gen.h" Index: trunk/src/unit.h =================================================================== --- trunk/src/unit.h (revision 26930) +++ trunk/src/unit.h (revision 26931) @@ -35,11 +35,8 @@ #ifndef PCB_UNIT_H #define PCB_UNIT_H -#include "config.h" +#include "global_typedefs.h" -/* typedef ... pcb_coord_t; pcb base unit, typedef'd in config.h */ -typedef double pcb_angle_t; /* degrees */ - enum pcb_allow_e { PCB_UNIT_NO_PRINT = 0, /* suffixes we can read but not print (i.e., "inch") */ PCB_UNIT_ALLOW_NM = 1, @@ -98,7 +95,6 @@ int index; /* Index into Unit[] list */ }; -typedef struct pcb_unit_s pcb_unit_t; extern pcb_unit_t pcb_units[]; /* Look up a given suffix in the units array. Pluralized units are supported.