306 |
|
int typ; |
307 |
|
register union {int i; double d; COLOR C;} *ptr; |
308 |
|
{ |
309 |
+ |
extern char *index(); |
310 |
|
int i0; |
311 |
|
double d0, d1, d2; |
312 |
|
char buf[48]; |
340 |
|
sprintf(buf, " (%c): ", ptr->i ? 'y' : 'n'); |
341 |
|
(*dev->comout)(buf); |
342 |
|
(*dev->comin)(buf, NULL); |
343 |
+ |
if (buf[0] == '\0' || |
344 |
+ |
index("yY+1tTnN-0fF", buf[0]) == NULL) |
345 |
+ |
break; |
346 |
|
} |
347 |
< |
ptr->i = tolower(buf[0]) == 'y'; |
347 |
> |
ptr->i = index("yY+1tT", buf[0]) != NULL; |
348 |
|
break; |
349 |
|
case 'C': /* color */ |
350 |
|
if (sscanf(str, "%lf %lf %lf", &d0, &d1, &d2) != 3) { |