comparison pads2gpcb/decals.c @ 43:4a50888d09ce

pads2gpcb: handle error cases when the default pad is defined, but failed
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Sat, 30 Jan 2016 05:39:52 +0000
parents a2d304ec3817
children bf1be6c97c28
comparison
equal deleted inserted replaced
42:43ba91b137e2 43:4a50888d09ce
192 } 192 }
193 if (pinno) 193 if (pinno)
194 padptr = &pins_array[pinno-1].shape; 194 padptr = &pins_array[pinno-1].shape;
195 else 195 else
196 padptr = &fpbody.default_pad; 196 padptr = &fpbody.default_pad;
197 padptr->defined = 1;
197 198
198 for (i = 0; i < stacklines; i++) { 199 for (i = 0; i < stacklines; i++) {
199 get_line_internal(); 200 get_line_internal();
200 parse_input_line_fields(); 201 parse_input_line_fields();
201 if (input_line_nfields < 3) { 202 if (input_line_nfields < 3) {
215 int i; 216 int i;
216 217
217 if (!fpbody.default_pad.valid) 218 if (!fpbody.default_pad.valid)
218 return; 219 return;
219 for (i = 0; i < fpbody.npins; i++) 220 for (i = 0; i < fpbody.npins; i++)
220 if (!pins_array[i].shape.valid) 221 if (!pins_array[i].shape.defined)
221 pins_array[i].shape = fpbody.default_pad; 222 pins_array[i].shape = fpbody.default_pad;
222 } 223 }
223 224
224 static 225 static
225 convert_pad_to_gpcb(pinidx) 226 convert_pad_to_gpcb(pinidx)