| 241 |
|
printf("}\n"); |
| 242 |
|
putmapping(); /* put out color mapping */ |
| 243 |
|
} |
| 244 |
< |
if (debugfp != NULL) /* put out debug picture */ |
| 244 |
> |
if (debugfp != NULL) { /* put out debug picture */ |
| 245 |
|
if (scanning) |
| 246 |
|
picdebug(); |
| 247 |
|
else |
| 248 |
|
clrdebug(); |
| 249 |
+ |
} |
| 250 |
|
exit(0); |
| 251 |
|
userr: |
| 252 |
|
fprintf(stderr, |
| 366 |
|
float xyYin[3]; |
| 367 |
|
|
| 368 |
|
while (fgetval(stdin, 'i', &n) == 1) { /* read colors */ |
| 369 |
< |
if (n < 0 | n > 24 || |
| 369 |
> |
if ((n < 0) | (n > 24) || |
| 370 |
|
fgetval(stdin, 'f', &xyYin[0]) != 1 || |
| 371 |
|
fgetval(stdin, 'f', &xyYin[1]) != 1 || |
| 372 |
|
fgetval(stdin, 'f', &xyYin[2]) != 1 || |
| 373 |
< |
xyYin[0] < 0. | xyYin[1] < 0. || |
| 373 |
> |
(xyYin[0] < 0.) | (xyYin[1] < 0.) || |
| 374 |
|
xyYin[0] + xyYin[1] > 1.) { |
| 375 |
|
fprintf(stderr, "%s: bad color input data\n", |
| 376 |
|
progname); |