--- ray/src/meta/mt160l.c 2003/10/27 10:28:59 1.3 +++ ray/src/meta/mt160l.c 2003/11/15 02:13:37 1.4 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: mt160l.c,v 1.3 2003/10/27 10:28:59 schorsch Exp $"; +static const char RCSid[] = "$Id: mt160l.c,v 1.4 2003/11/15 02:13:37 schorsch Exp $"; #endif /* * Program to print meta-files on a dot-matrix printer @@ -86,11 +86,11 @@ static short condonly = FALSE, conditioned = FALSE; -main(argc, argv) - -int argc; -char **argv; - +int +main( + int argc, + char **argv +) { FILE *fp; char comargs[200], command[300]; @@ -154,60 +154,44 @@ char **argv; fputs(PUNINIT, stdout); } } - return(0); - } +} - - - - - -thispage() /* rewind and initialize current page */ - +void +thispage(void) /* rewind and initialize current page */ { - if (lineno) error(USER, "cannot restart page in thispage"); - } - - -nextpage() /* advance to next page */ - +void +nextpage(void) /* advance to next page */ { - fputs("\f\r", stdout); lineno = 0; - } - - -contpage() /* continue new plot on current page */ - +void +contpage(void) /* continue new plot on current page */ { while (lineno++ < NLINES) putc('\n', stdout); lineno = 0; - } - -printspan() /* output span to printer */ - +void +printspan(void) /* output span to printer */ { register unsigned shiftreg; unsigned short outc; - register k; + register int k; unsigned short offset, mask; int i,j; @@ -249,17 +233,13 @@ printspan() /* output span to printer */ } putc('\n', stdout); lineno++; - } - - - -printstr(p) /* output a string to the printer */ - -PRIMITIVE *p; - +void +printstr( /* output a string to the printer */ + PRIMITIVE *p +) { int i;