7 |
|
*/ |
8 |
|
|
9 |
|
#include <math.h> |
10 |
< |
|
10 |
> |
#include "paths.h" |
11 |
|
#include "platform.h" |
12 |
|
#include "color.h" |
13 |
|
#include "resolu.h" |
21 |
|
double expcomp = 1.0; /* exposure compensation */ |
22 |
|
int doflat = -1; /* produce flat file? */ |
23 |
|
double origexp = -1.0; /* original exposure */ |
24 |
– |
char *progname; |
24 |
|
|
25 |
|
static gethfunc headline; |
26 |
|
static void quiterr(char *err); |
73 |
|
main(int argc, char *argv[]) |
74 |
|
{ |
75 |
|
int i; |
76 |
+ |
|
77 |
|
SET_DEFAULT_BINARY(); |
78 |
|
SET_FILE_BINARY(stdin); |
79 |
|
SET_FILE_BINARY(stdout); |
80 |
< |
progname = argv[0]; |
80 |
> |
fixargv0(argv[0]); |
81 |
|
|
82 |
|
for (i = 1; i < argc; i++) |
83 |
|
if (argv[i][0] == '-') |