From e8fb1d3efb114d1859f14fda2b6681d99df1f48a Mon Sep 17 00:00:00 2001 From: wkj Date: Mon, 17 May 2004 02:24:15 +0000 Subject: tr2post and aux/download; download is a shell script in $PLAN9/bin. --- src/cmd/postscript/tr2post/ps_include.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/cmd/postscript/tr2post/ps_include.c') diff --git a/src/cmd/postscript/tr2post/ps_include.c b/src/cmd/postscript/tr2post/ps_include.c index 27d020a3..8ab840fe 100644 --- a/src/cmd/postscript/tr2post/ps_include.c +++ b/src/cmd/postscript/tr2post/ps_include.c @@ -11,9 +11,8 @@ extern int curfontsize; typedef struct {long start, end;} Section; static char *buf; -static -copy(Biobufhdr *fin, Biobufhdr *fout, Section *s) { - int cond; +static void +copy(Biobuf *fin, Biobuf *fout, Section *s) { if (s->end <= s->start) return; Bseek(fin, s->start, 0); @@ -57,7 +56,7 @@ copy(Biobufhdr *fin, Biobufhdr *fout, Section *s) { /* rot; /* rotation - in clockwise degrees */ void -ps_include(Biobufhdr *fin, Biobufhdr *fout, int page_no, int whiteout, +ps_include(Biobuf *fin, Biobuf *fout, int page_no, int whiteout, int outline, int scaleboth, double cx, double cy, double sx, double sy, double ax, double ay, double rot) { char **strp; @@ -66,7 +65,7 @@ ps_include(Biobufhdr *fin, Biobufhdr *fout, int page_no, int whiteout, int nglobal = 0; /* number of global defs so far */ int maxglobal = 0; /* and the number we've got room for */ Section prolog, page, trailer; /* prologue, page, and trailer offsets */ - Section *global; /* offsets for all global definitions */ + Section *global = 0; /* offsets for all global definitions */ double llx, lly; /* lower left and */ double urx, ury; /* upper right corners - default coords */ double w = whiteout != 0; /* mostly for the var() macro */ -- cgit v1.2.3