| 57 |
|
FILE *getofile(const char *ospec, const char *mname, int bn); |
| 58 |
|
int ofname(char *oname, const char *ospec, const char *mname, int bn); |
| 59 |
|
void printheader(FILE *fout, const char *info); |
| 60 |
+ |
void printresolu(FILE *fout); |
| 61 |
|
|
| 62 |
|
/* |
| 63 |
|
* The rcont structure is used to manage i/o with a particular |
| 599 |
|
break; |
| 600 |
|
} |
| 601 |
|
fputc('\n', fout); |
| 602 |
+ |
} |
| 603 |
+ |
|
| 604 |
+ |
/* write resolution string to given output stream */ |
| 605 |
+ |
void |
| 606 |
+ |
printresolu(FILE *fout) |
| 607 |
+ |
{ |
| 608 |
|
if (xres > 0) { |
| 609 |
|
if (yres > 0) /* resolution string */ |
| 610 |
|
fprtresolu(xres, yres, fout); |
| 626 |
|
SET_FILE_BINARY(stdout); |
| 627 |
|
if (header) |
| 628 |
|
printheader(stdout, NULL); |
| 629 |
+ |
printresolu(stdout); |
| 630 |
|
} |
| 631 |
|
using_stdout = 1; |
| 632 |
|
return stdout; |
| 655 |
|
if (header) { |
| 656 |
|
char info[512]; |
| 657 |
|
char *cp = info; |
| 658 |
< |
sprintf(cp, "MODIFIER=%s\n", mname); |
| 659 |
< |
while (*cp) ++cp; |
| 658 |
> |
if (ofl & OF_MODIFIER) { |
| 659 |
> |
sprintf(cp, "MODIFIER=%s\n", mname); |
| 660 |
> |
while (*cp) ++cp; |
| 661 |
> |
} |
| 662 |
|
if (ofl & OF_BIN) { |
| 663 |
|
sprintf(cp, "BIN=%d\n", bn); |
| 664 |
|
while (*cp) ++cp; |
| 666 |
|
*cp = '\0'; |
| 667 |
|
printheader(fp, info); |
| 668 |
|
} |
| 669 |
+ |
printresolu(fp); |
| 670 |
|
/* play catch-up */ |
| 671 |
|
for (i = 0; i < lastdone; i++) { |
| 672 |
|
static const DCOLOR nocontrib = BLKCOLOR; |