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 */ |