summaryrefslogtreecommitdiffstats
path: root/src/cmd/postscript/tr2post/ps_include.c
diff options
context:
space:
mode:
authorwkj <devnull@localhost>2004-05-17 02:24:15 +0000
committerwkj <devnull@localhost>2004-05-17 02:24:15 +0000
commite8fb1d3efb114d1859f14fda2b6681d99df1f48a (patch)
treea3b437370521c9eff6cab00dd77fd2d95a3dc090 /src/cmd/postscript/tr2post/ps_include.c
parent8a3cbc157981485adc947c0477dc3e4907acc9a3 (diff)
downloadplan9port-e8fb1d3efb114d1859f14fda2b6681d99df1f48a.tar.gz
plan9port-e8fb1d3efb114d1859f14fda2b6681d99df1f48a.zip
tr2post and aux/download; download is a shell script in $PLAN9/bin.
Diffstat (limited to 'src/cmd/postscript/tr2post/ps_include.c')
-rw-r--r--src/cmd/postscript/tr2post/ps_include.c9
1 files changed, 4 insertions, 5 deletions
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 */