13 |
|
#include "rtprocess.h" /* getpid() */ |
14 |
|
#include "platform.h" |
15 |
|
#include "RpictSimulManager.h" |
16 |
+ |
#include "func.h" |
17 |
|
|
17 |
– |
extern char *progname; /* argv[0] */ |
18 |
|
const char *sigerr[NSIG]; /* signal error messages */ |
19 |
|
char *errfile = NULL; /* error output file */ |
20 |
|
|
60 |
|
void |
61 |
|
quit(int code) /* quit program */ |
62 |
|
{ |
63 |
< |
if (!code) |
64 |
< |
code = myRPmanager.Cleanup(); |
65 |
< |
|
66 |
< |
exit(code); |
63 |
> |
exit(code); // don't bother about freeing anything |
64 |
|
} |
65 |
|
|
66 |
|
/* Set default options */ |
107 |
|
strcat(RFeatureList, RXPICT_FEATURES); |
108 |
|
if (argc > 1 && !strcmp(argv[1], "-features")) |
109 |
|
return feature_status(argc-2, argv+2); |
110 |
+ |
/* initialize calcomp routines */ |
111 |
+ |
initfunc(); |
112 |
|
/* set defaults */ |
113 |
|
default_options(); |
114 |
|
/* option city */ |
523 |
|
void |
524 |
|
rpict(int seq, char *pout, char *zout, char *prvr) |
525 |
|
/* |
526 |
< |
* If seq is greater than zero, then we will render a sequence of |
526 |
> |
* If seq is greater than zero, we will render a sequence of |
527 |
|
* images based on view parameter strings read from the standard input. |
528 |
|
* If pout is NULL, then all images will be sent to the standard ouput. |
529 |
|
* If seq is greater than zero and prvr is an integer, then it is the |
569 |
|
if (!dtype) |
570 |
|
error(USER, "ResumeFrame() failed"); |
571 |
|
if (!seq) |
572 |
< |
return; // all done if we're running a sequence |
572 |
> |
return; // all done if not a sequence |
573 |
|
} |
574 |
|
do { |
575 |
|
if (prvr) // have view from sequence recovery? |
621 |
|
zout ? dbuf : zout) |
622 |
|
&& !seq | (errno != EEXIST)) |
623 |
|
error(USER, "RenderFrame() failed"); |
624 |
< |
} while (seq++); // all done if we're running a sequence |
624 |
> |
} while (seq++); // all done if not a sequence |
625 |
|
} |