FreeCalypso > hg > ueda-linux
comparison pads2gpcb/decals.c @ 68:b7f49f029bc3
pads2gpcb: use Cartesian Y axis direction internally
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Sun, 31 Jan 2016 23:19:37 +0000 |
parents | 455a0051f9d2 |
children | a7f0e9bb3fb7 |
comparison
equal
deleted
inserted
replaced
67:e14cd5433e83 | 68:b7f49f029bc3 |
---|---|
100 input_lineno); | 100 input_lineno); |
101 bad = 1; | 101 bad = 1; |
102 continue; | 102 continue; |
103 } | 103 } |
104 x[i] = convert_input_dim(input_line_fields[0]); | 104 x[i] = convert_input_dim(input_line_fields[0]); |
105 y[i] = -convert_input_dim(input_line_fields[1]); | 105 y[i] = convert_input_dim(input_line_fields[1]); |
106 } | 106 } |
107 if (bad) | 107 if (bad) |
108 return(1); | 108 return(1); |
109 | 109 |
110 for (i = 0; i < ncoord - 1; i++) { | 110 for (i = 0; i < ncoord - 1; i++) { |
147 input_lineno); | 147 input_lineno); |
148 bad = 1; | 148 bad = 1; |
149 continue; | 149 continue; |
150 } | 150 } |
151 x[i] = convert_input_dim(input_line_fields[0]); | 151 x[i] = convert_input_dim(input_line_fields[0]); |
152 y[i] = -convert_input_dim(input_line_fields[1]); | 152 y[i] = convert_input_dim(input_line_fields[1]); |
153 } | 153 } |
154 if (bad) | 154 if (bad) |
155 return(1); | 155 return(1); |
156 | 156 |
157 /* find the centre and diameter */ | 157 /* find the centre and diameter */ |
265 "%s line %d: expected %d in the pin number field\n", | 265 "%s line %d: expected %d in the pin number field\n", |
266 input_filename, input_lineno); | 266 input_filename, input_lineno); |
267 exit(1); | 267 exit(1); |
268 } | 268 } |
269 pins_array[idx].x1 = convert_input_dim(input_line_fields[0]); | 269 pins_array[idx].x1 = convert_input_dim(input_line_fields[0]); |
270 pins_array[idx].y1 = -convert_input_dim(input_line_fields[1]); | 270 pins_array[idx].y1 = convert_input_dim(input_line_fields[1]); |
271 } | 271 } |
272 | 272 |
273 static void | 273 static void |
274 process_pad_shape(padptr) | 274 process_pad_shape(padptr) |
275 struct pad_shape_info *padptr; | 275 struct pad_shape_info *padptr; |
470 if (input_units_global == 'B') | 470 if (input_units_global == 'B') |
471 input_units_current = 'B'; | 471 input_units_current = 'B'; |
472 else | 472 else |
473 input_units_current = fpbody.src_units; | 473 input_units_current = fpbody.src_units; |
474 fpbody.mark_x = convert_input_dim(input_line_fields[2]); | 474 fpbody.mark_x = convert_input_dim(input_line_fields[2]); |
475 fpbody.mark_y = -convert_input_dim(input_line_fields[3]); | 475 fpbody.mark_y = convert_input_dim(input_line_fields[3]); |
476 num_drawing_pieces = atoi(input_line_fields[4]); | 476 num_drawing_pieces = atoi(input_line_fields[4]); |
477 fpbody.npins = atoi(input_line_fields[5]); | 477 fpbody.npins = atoi(input_line_fields[5]); |
478 num_padstack_defs = atoi(input_line_fields[6]); | 478 num_padstack_defs = atoi(input_line_fields[6]); |
479 if (input_line_nfields > 7) | 479 if (input_line_nfields > 7) |
480 num_text_items = atoi(input_line_fields[7]); | 480 num_text_items = atoi(input_line_fields[7]); |