Index: obj_pstk.h =================================================================== --- obj_pstk.h (revision 19240) +++ obj_pstk.h (revision 19241) @@ -79,8 +79,14 @@ int mech_idx; /* -1 or index to the first shape[] that is of PCB_LYT_MECH */ } pcb_pstk_proto_t; +/* Whether a proto cuts through board layers (has a hole or slot) */ +#define PCB_PSTK_PROTO_CUTS(proto) (((proto)->hdia > 0) || ((proto)->mech_idx >= 0)) +/* Whether a proto cuts through board layers (has a hole or slot) and connects + layers with conductive material */ +#define PCB_PSTK_PROTO_PLATES(proto) (((proto)->hplated) && (((proto)->hdia > 0) || ((proto)->mech_idx >= 0))) + pcb_pstk_t *pcb_pstk_alloc(pcb_data_t *data); void pcb_pstk_free(pcb_pstk_t *ps); pcb_pstk_t *pcb_pstk_new(pcb_data_t *data, pcb_cardinal_t proto, pcb_coord_t x, pcb_coord_t y, pcb_coord_t clearance, pcb_flag_t Flags);