| 8 |
|
* 7/10/86 |
| 9 |
|
*/ |
| 10 |
|
|
| 11 |
+ |
#include "rtprocess.h" |
| 12 |
|
#include "meta.h" |
| 13 |
+ |
#include "plot.h" |
| 14 |
|
|
| 15 |
|
|
| 16 |
|
#define OUTFILT "pexpand +OCIms" /* output filter */ |
| 22 |
|
|
| 23 |
|
char *progname; |
| 24 |
|
|
| 25 |
+ |
static void plot4(FILE *fp); |
| 26 |
+ |
static void doseg(int n); |
| 27 |
|
|
| 28 |
< |
main(argc, argv) |
| 29 |
< |
int argc; |
| 30 |
< |
char *argv[]; |
| 28 |
> |
|
| 29 |
> |
int |
| 30 |
> |
main( |
| 31 |
> |
int argc, |
| 32 |
> |
char *argv[] |
| 33 |
> |
) |
| 34 |
|
{ |
| 28 |
– |
#ifdef UNIX |
| 29 |
– |
FILE *popen(); |
| 30 |
– |
#endif |
| 35 |
|
FILE *fp; |
| 36 |
|
int i; |
| 37 |
|
|
| 34 |
– |
#ifdef CPM |
| 35 |
– |
fixargs("plot4", &argc, &argv); |
| 36 |
– |
#endif |
| 37 |
– |
|
| 38 |
|
progname = argv[0]; |
| 39 |
|
|
| 40 |
– |
#ifdef UNIX |
| 40 |
|
pout = popen(OUTFILT, "w"); |
| 42 |
– |
#endif |
| 41 |
|
|
| 42 |
|
if (argc > 1) |
| 43 |
|
for (i = 1; i < argc; i++) { |
| 50 |
|
|
| 51 |
|
pglob(PEOF, 0200, NULL); |
| 52 |
|
|
| 55 |
– |
#ifdef UNIX |
| 53 |
|
return(pclose(pout)); |
| 57 |
– |
#else |
| 58 |
– |
return(0); |
| 59 |
– |
#endif |
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
|
| 57 |
< |
plot4(fp) /* put a file into its place on page */ |
| 58 |
< |
FILE *fp; |
| 57 |
> |
void |
| 58 |
> |
plot4( /* put a file into its place on page */ |
| 59 |
> |
FILE *fp |
| 60 |
> |
) |
| 61 |
|
{ |
| 62 |
|
static int nplts = 0; |
| 63 |
|
PRIMITIVE curp; |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
|
| 79 |
< |
doseg(n) /* do segment number n */ |
| 80 |
< |
int n; |
| 79 |
> |
void |
| 80 |
> |
doseg( /* do segment number n */ |
| 81 |
> |
int n |
| 82 |
> |
) |
| 83 |
|
{ |
| 84 |
|
switch (n) { |
| 85 |
|
case 0: /* upper left */ |