--- ray/src/meta/plot4.c 2003/02/22 02:07:26 1.1 +++ ray/src/meta/plot4.c 2003/11/15 02:13:37 1.4 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: plot4.c,v 1.1 2003/02/22 02:07:26 greg Exp $"; +static const char RCSid[] = "$Id: plot4.c,v 1.4 2003/11/15 02:13:37 schorsch Exp $"; #endif /* * plot4.c - program to put four metafile pages onto one. @@ -8,7 +8,9 @@ static const char RCSid[] = "$Id: plot4.c,v 1.1 2003/0 * 7/10/86 */ +#include "rtprocess.h" #include "meta.h" +#include "plot.h" #define OUTFILT "pexpand +OCIms" /* output filter */ @@ -20,26 +22,22 @@ extern FILE *pout; /* the output stream */ char *progname; +static void plot4(FILE *fp); +static void doseg(int n); -main(argc, argv) -int argc; -char *argv[]; + +int +main( + int argc, + char *argv[] +) { -#ifdef UNIX - FILE *popen(); -#endif FILE *fp; int i; -#ifdef CPM - fixargs("plot4", &argc, &argv); -#endif - progname = argv[0]; -#ifdef UNIX pout = popen(OUTFILT, "w"); -#endif if (argc > 1) for (i = 1; i < argc; i++) { @@ -52,16 +50,14 @@ char *argv[]; pglob(PEOF, 0200, NULL); -#ifdef UNIX return(pclose(pout)); -#else - return(0); -#endif } -plot4(fp) /* put a file into its place on page */ -FILE *fp; +void +plot4( /* put a file into its place on page */ + FILE *fp +) { static int nplts = 0; PRIMITIVE curp; @@ -80,8 +76,10 @@ FILE *fp; } -doseg(n) /* do segment number n */ -int n; +void +doseg( /* do segment number n */ + int n +) { switch (n) { case 0: /* upper left */