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