| 109 |
|
|
| 110 |
|
extern char *malloc(), *calloc(); |
| 111 |
|
|
| 112 |
– |
extern double pow(), log(); |
| 113 |
– |
|
| 112 |
|
Display *thedisplay; |
| 113 |
|
|
| 114 |
+ |
|
| 115 |
|
main(argc, argv) |
| 116 |
|
int argc; |
| 117 |
|
char *argv[]; |
| 307 |
|
} |
| 308 |
|
|
| 309 |
|
|
| 311 |
– |
eputs(s) |
| 312 |
– |
char *s; |
| 313 |
– |
{ |
| 314 |
– |
fputs(s, stderr); |
| 315 |
– |
} |
| 316 |
– |
|
| 317 |
– |
|
| 318 |
– |
quit(code) |
| 319 |
– |
int code; |
| 320 |
– |
{ |
| 321 |
– |
exit(code); |
| 322 |
– |
} |
| 323 |
– |
|
| 324 |
– |
|
| 310 |
|
static int |
| 311 |
|
viscmp(v1,v2) /* compare visual to see which is better, descending */ |
| 312 |
|
register XVisualInfo *v1, *v2; |
| 881 |
|
} |
| 882 |
|
for (x = 0; x < maxcolors; x++) |
| 883 |
|
clrtab[x][RED] = clrtab[x][GRN] = |
| 884 |
< |
clrtab[x][BLU] = (x*256+maxcolors/2)/maxcolors; |
| 884 |
> |
clrtab[x][BLU] = ((long)x*256+maxcolors/2)/maxcolors; |
| 885 |
|
} |
| 886 |
|
|
| 887 |
|
|