| 12 |
|
#include <stdio.h> |
| 13 |
|
|
| 14 |
|
#include "meta.h" |
| 15 |
+ |
#include "mgvars.h" |
| 16 |
+ |
#include "mgraph.h" |
| 17 |
|
|
| 18 |
|
#define istyp(s) (s[0] == '-') |
| 19 |
|
|
| 23 |
|
|
| 24 |
|
char *libpath[4]; |
| 25 |
|
|
| 26 |
+ |
static void dofile(int optc, char *optv[], char *file); |
| 27 |
|
|
| 28 |
< |
main(argc, argv) |
| 29 |
< |
int argc; |
| 30 |
< |
char *argv[]; |
| 28 |
> |
|
| 29 |
> |
int |
| 30 |
> |
main( |
| 31 |
> |
int argc, |
| 32 |
> |
char *argv[] |
| 33 |
> |
) |
| 34 |
|
{ |
| 35 |
|
char *getenv(); |
| 36 |
|
int i, file0; |
| 56 |
|
dofile(file0-1, argv+1, argv[i]); |
| 57 |
|
|
| 58 |
|
quit(0); |
| 59 |
+ |
return 0; /* pro forma return */ |
| 60 |
|
} |
| 61 |
|
|
| 62 |
|
|
| 63 |
< |
dofile(optc, optv, file) /* plot a file */ |
| 64 |
< |
int optc; |
| 65 |
< |
char *optv[]; |
| 66 |
< |
char *file; |
| 63 |
> |
static void |
| 64 |
> |
dofile( /* plot a file */ |
| 65 |
> |
int optc, |
| 66 |
> |
char *optv[], |
| 67 |
> |
char *file |
| 68 |
> |
) |
| 69 |
|
{ |
| 70 |
|
char stmp[256]; |
| 71 |
|
int i; |