26 |
|
char *hdkfile; /* holodeck file name */ |
27 |
|
char froot[256]; /* root file name */ |
28 |
|
|
29 |
– |
int nowarn = 0; /* turn warnings off? */ |
30 |
– |
|
29 |
|
int ncprocs = 0; /* desired number of compute processes */ |
30 |
|
|
31 |
|
char *outdev = NULL; /* output device name */ |
53 |
|
|
54 |
|
char *sigerr[NSIG]; /* signal error messages */ |
55 |
|
|
56 |
+ |
extern int nowarn; /* turn warnings off? */ |
57 |
+ |
|
58 |
|
extern time_t time(); |
59 |
|
|
60 |
|
|
453 |
|
int4 nextloc; |
454 |
|
/* open holodeck file */ |
455 |
|
if ((fp = fopen(hdkfile, ncprocs>0 ? "r+" : "r")) == NULL) { |
456 |
< |
sprintf(errmsg, "cannot open \"%s\" for %s", hdkfile, |
457 |
< |
ncprocs>0 ? "appending" : "reading"); |
456 |
> |
sprintf(errmsg, "cannot %s \"%s\"", |
457 |
> |
ncprocs>0 ? "append" : "read", hdkfile); |
458 |
|
error(SYSTEM, errmsg); |
459 |
|
} |
460 |
|
/* load variables from header */ |
550 |
|
fflush(stderr); |
551 |
|
midline = 0; |
552 |
|
} |
553 |
– |
} |
554 |
– |
|
555 |
– |
|
556 |
– |
wputs(s) /* put warning string to stderr */ |
557 |
– |
char *s; |
558 |
– |
{ |
559 |
– |
if (!nowarn) |
560 |
– |
eputs(s); |
553 |
|
} |
554 |
|
|
555 |
|
|