15 |
|
|
16 |
|
#include "rtprocess.h" |
17 |
|
#include "rterror.h" |
18 |
+ |
#include "meta.h" |
19 |
+ |
#include "mgraph.h" |
20 |
|
#include "mgvars.h" |
21 |
|
|
22 |
|
typedef struct { |
98 |
|
mainmenu(); |
99 |
|
|
100 |
|
quit(0); |
101 |
+ |
return 0; /* pro forma return */ |
102 |
|
} |
103 |
|
|
104 |
< |
extern void |
105 |
< |
eputs(msg) /* print error message */ |
103 |
< |
char *msg; |
104 |
> |
void |
105 |
> |
eputs(const char *msg) /* print error message */ |
106 |
|
{ |
107 |
|
fputs(msg, stderr); |
108 |
|
} |
109 |
|
|
110 |
< |
extern void |
111 |
< |
quit(code) /* recover or quit */ |
110 |
< |
int code; |
110 |
> |
void |
111 |
> |
quit(int code) /* recover or quit */ |
112 |
|
{ |
113 |
|
if (code && recover--) |
114 |
|
longjmp(env, 1); |
174 |
|
else |
175 |
|
break; |
176 |
|
if (sbuf[0] < MAXCUR) |
177 |
< |
setvars(NCVARS, cparam[sbuf[0]]); |
177 |
> |
setvars(NCVARS, cparam[(int)sbuf[0]]); |
178 |
|
break; |
179 |
|
case 7: /* output plot */ |
180 |
|
plotout(); |
237 |
|
{ |
238 |
|
extern FILE *pout; |
239 |
|
char sbuf[128]; |
240 |
< |
char *command; |
240 |
> |
char *command = NULL; |
241 |
|
int i; |
242 |
|
|
243 |
|
printf("\nOUTPUT PLOT\n"); |