1 |
< |
/* Copyright (c) 1991 Regents of the University of California */ |
1 |
> |
/* Copyright (c) 1992 Regents of the University of California */ |
2 |
|
|
3 |
|
#ifndef lint |
4 |
|
static char SCCSid[] = "$SunId$ LBL"; |
89 |
|
if (checkheader(stdin, COLRFMT, stdout) < 0 || |
90 |
|
(order = fgetresolu(&xmax, &ymax, stdin)) < 0) |
91 |
|
quiterr("bad picture format"); |
92 |
+ |
fputs(progname, stdout); |
93 |
|
if (bradj) |
94 |
< |
fputexpos(pow(2.0, (double)bradj), stdout); |
95 |
< |
if (!doflat) { |
94 |
> |
printf(" -e %+d", bradj); |
95 |
> |
if (doflat) |
96 |
> |
fputs("\n", stdout); |
97 |
> |
else { |
98 |
> |
fputs(" -r\n", stdout); |
99 |
|
fputformat(COLRFMT, stdout); |
100 |
< |
printf("%s -r\n\n", progname); |
101 |
< |
} else |
102 |
< |
printf("%s\n\n", progname); |
100 |
> |
} |
101 |
> |
if (bradj) |
102 |
> |
fputexpos(pow(2.0, (double)bradj), stdout); |
103 |
> |
fputs("\n", stdout); |
104 |
|
fputresolu(order, xmax, ymax, stdout); |
105 |
|
/* allocate scanline */ |
106 |
|
scanin = (COLR *)malloc(xmax*sizeof(COLR)); |