| 8 |
|
*/ |
| 9 |
|
|
| 10 |
|
#include "platform.h" |
| 11 |
< |
#include "standard.h" |
| 11 |
> |
#include "rtprocess.h" |
| 12 |
> |
#include "rterror.h" |
| 13 |
|
#include "color.h" |
| 14 |
|
#include "calcomp.h" |
| 15 |
|
#include "view.h" |
| 33 |
|
|
| 34 |
|
char ourfmt[LPICFMT+1] = PICFMT; /* input picture format */ |
| 35 |
|
|
| 36 |
+ |
char StandardInput[] = "<stdin>"; |
| 37 |
|
char Command[] = "<Command>"; |
| 38 |
|
char vcolin[3][4] = {"ri", "gi", "bi"}; |
| 39 |
|
char vcolout[3][4] = {"ro", "go", "bo"}; |
| 71 |
|
int wrongformat = 0; |
| 72 |
|
int gotview; |
| 73 |
|
|
| 72 |
– |
FILE *popen(); |
| 74 |
|
|
| 75 |
|
extern char *emalloc(); |
| 76 |
|
|
| 77 |
+ |
static gethfunc tabputs; |
| 78 |
|
|
| 79 |
|
main(argc, argv) |
| 80 |
|
int argc; |
| 125 |
|
if (argv[a][0] == '-') |
| 126 |
|
switch (argv[a][1]) { |
| 127 |
|
case '\0': |
| 128 |
< |
input[nfiles].name = "<stdin>"; |
| 128 |
> |
input[nfiles].name = StandardInput; |
| 129 |
|
input[nfiles].fp = stdin; |
| 130 |
|
break; |
| 131 |
|
case 'o': |
| 221 |
|
} |
| 222 |
|
|
| 223 |
|
|
| 224 |
< |
tabputs(s) /* put out string preceded by a tab */ |
| 225 |
< |
char *s; |
| 224 |
> |
static int |
| 225 |
> |
tabputs( /* put out string preceded by a tab */ |
| 226 |
> |
char *s, |
| 227 |
> |
void *p |
| 228 |
> |
) |
| 229 |
|
{ |
| 230 |
|
char fmt[32]; |
| 231 |
|
double d; |
| 602 |
|
} |
| 603 |
|
|
| 604 |
|
|
| 605 |
< |
void |
| 606 |
< |
wputs(msg) |
| 602 |
< |
char *msg; |
| 605 |
> |
extern void |
| 606 |
> |
wputs(char *msg) |
| 607 |
|
{ |
| 608 |
|
if (!nowarn) |
| 609 |
|
eputs(msg); |
| 610 |
|
} |
| 611 |
|
|
| 612 |
|
|
| 613 |
< |
void |
| 614 |
< |
eputs(msg) |
| 611 |
< |
char *msg; |
| 613 |
> |
extern void |
| 614 |
> |
eputs(char *msg) |
| 615 |
|
{ |
| 616 |
|
fputs(msg, stderr); |
| 617 |
|
} |
| 618 |
|
|
| 619 |
|
|
| 620 |
< |
void |
| 621 |
< |
quit(code) /* exit gracefully */ |
| 619 |
< |
int code; |
| 620 |
> |
extern void |
| 621 |
> |
quit(int code) /* exit gracefully */ |
| 622 |
|
{ |
| 623 |
|
register int i; |
| 624 |
|
/* close input files */ |