| 9 |
|
|
| 10 |
|
|
| 11 |
|
#include "meta.h" |
| 12 |
– |
|
| 12 |
|
#include "plot.h" |
| 13 |
+ |
#include "psplot.h" |
| 14 |
|
|
| 15 |
|
|
| 16 |
|
char *progname; |
| 17 |
|
|
| 18 |
|
static short newpage = TRUE; |
| 19 |
|
|
| 20 |
+ |
static void doprim(PRIMITIVE *p); |
| 21 |
+ |
static int doglobal(PRIMITIVE *g); |
| 22 |
|
|
| 23 |
< |
|
| 24 |
< |
main(argc, argv) |
| 25 |
< |
|
| 26 |
< |
int argc; |
| 27 |
< |
char **argv; |
| 26 |
< |
|
| 23 |
> |
int |
| 24 |
> |
main( |
| 25 |
> |
int argc, |
| 26 |
> |
char **argv |
| 27 |
> |
) |
| 28 |
|
{ |
| 29 |
|
FILE *fp; |
| 30 |
|
|
| 52 |
|
|
| 53 |
|
|
| 54 |
|
|
| 55 |
< |
|
| 56 |
< |
plot(infp) /* plot meta-file */ |
| 57 |
< |
|
| 58 |
< |
FILE *infp; |
| 58 |
< |
|
| 55 |
> |
void |
| 56 |
> |
plot( /* plot meta-file */ |
| 57 |
> |
FILE *infp |
| 58 |
> |
) |
| 59 |
|
{ |
| 60 |
|
PRIMITIVE nextp; |
| 61 |
|
|
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
|
| 73 |
< |
|
| 74 |
< |
doglobal(g) /* execute a global command */ |
| 75 |
< |
|
| 76 |
< |
PRIMITIVE *g; |
| 77 |
< |
|
| 73 |
> |
int |
| 74 |
> |
doglobal( /* execute a global command */ |
| 75 |
> |
PRIMITIVE *g |
| 76 |
> |
) |
| 77 |
|
{ |
| 78 |
< |
FILE *fp; |
| 78 |
> |
FILE *fp = NULL; |
| 79 |
|
|
| 80 |
|
switch (g->com) { |
| 81 |
|
|
| 141 |
|
|
| 142 |
|
|
| 143 |
|
|
| 144 |
< |
|
| 145 |
< |
doprim(p) /* plot primitive */ |
| 146 |
< |
|
| 147 |
< |
PRIMITIVE *p; |
| 149 |
< |
|
| 144 |
> |
void |
| 145 |
> |
doprim( /* plot primitive */ |
| 146 |
> |
PRIMITIVE *p |
| 147 |
> |
) |
| 148 |
|
{ |
| 149 |
|
|
| 150 |
|
switch (p->com) { |
| 183 |
|
return; |
| 184 |
|
} |
| 185 |
|
newpage = FALSE; |
| 188 |
– |
|
| 186 |
|
} |
| 187 |
+ |
|