FreeCalypso > hg > ueda-linux
comparison pads2gpcb/decals.c @ 60:0444db01fa4a
pads2gpcb: recognize drawing on levels 0 and 1 in decals as silk
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Sun, 31 Jan 2016 03:29:33 +0000 |
parents | aeef205f7580 |
children | ff1d565d233c |
comparison
equal
deleted
inserted
replaced
59:aeef205f7580 | 60:0444db01fa4a |
---|---|
67 if (strcmp(input_line_fields[0], "OPEN") && | 67 if (strcmp(input_line_fields[0], "OPEN") && |
68 strcmp(input_line_fields[0], "CLOSED")) | 68 strcmp(input_line_fields[0], "CLOSED")) |
69 return(0); | 69 return(0); |
70 if (input_line_nfields != 5) | 70 if (input_line_nfields != 5) |
71 return(0); | 71 return(0); |
72 if (strcmp(input_line_fields[4], "0")) | 72 if (strcmp(input_line_fields[4], "0") && |
73 strcmp(input_line_fields[4], "1")) | |
73 return(0); | 74 return(0); |
74 ncoord = atoi(input_line_fields[1]); | 75 ncoord = atoi(input_line_fields[1]); |
75 if (ncoord < 2) { | 76 if (ncoord < 2) { |
76 printf("line %d: silk %s piece ncoord < 2\n", input_lineno, | 77 printf("line %d: silk %s piece ncoord < 2\n", input_lineno, |
77 input_line_fields[0]); | 78 input_line_fields[0]); |
124 | 125 |
125 if (strcmp(input_line_fields[0], "CIRCLE")) | 126 if (strcmp(input_line_fields[0], "CIRCLE")) |
126 return(0); | 127 return(0); |
127 if (input_line_nfields != 5) | 128 if (input_line_nfields != 5) |
128 return(0); | 129 return(0); |
129 if (strcmp(input_line_fields[4], "0")) | 130 if (strcmp(input_line_fields[4], "0") && |
131 strcmp(input_line_fields[4], "1")) | |
130 return(0); | 132 return(0); |
131 if (strcmp(input_line_fields[1], "2")) { | 133 if (strcmp(input_line_fields[1], "2")) { |
132 printf("line %d: silk CIRCLE piece ncoord != 2\n", | 134 printf("line %d: silk CIRCLE piece ncoord != 2\n", |
133 input_lineno); | 135 input_lineno); |
134 return(0); | 136 return(0); |