/* This file will be copied into the polygon lib */ int pcb_polygon_cleanup(pcb_polyarea_t *input, pcb_polyarea_t **output, int out_max) { if (out_max < 1) return -1; /* if input is already fine, just return it */ if (pcb_poly_valid(input)) { output[0] = input; return 1; } return -1; }