aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/tpic
diff options
context:
space:
mode:
authorPetter Rodhelind <petter.rodhelind@gmail.com>2020-01-14 11:41:08 +0100
committerPetter Rodhelind <petter.rodhelind@gmail.com>2020-01-14 11:41:08 +0100
commit02d7aa8915f9c3a3288dab01f321eb94ba219e3b (patch)
treef053238978479e408a2b83571443e132f30586ab /src/cmd/tpic
parentc0c9d8f883dfd3a7f5a74499d91bb95884b15873 (diff)
parent3d1382b98a502d0c34d5ba2c462396acc515016e (diff)
downloadplan9port-02d7aa8915f9c3a3288dab01f321eb94ba219e3b.tar.gz
plan9port-02d7aa8915f9c3a3288dab01f321eb94ba219e3b.tar.bz2
plan9port-02d7aa8915f9c3a3288dab01f321eb94ba219e3b.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/cmd/tpic')
-rw-r--r--src/cmd/tpic/arcgen.c1
-rw-r--r--src/cmd/tpic/input.c2
-rw-r--r--src/cmd/tpic/linegen.c2
-rw-r--r--src/cmd/tpic/pic.h3
-rw-r--r--src/cmd/tpic/tex.c22
5 files changed, 14 insertions, 16 deletions
diff --git a/src/cmd/tpic/arcgen.c b/src/cmd/tpic/arcgen.c
index 9c98d197..de43dcd2 100644
--- a/src/cmd/tpic/arcgen.c
+++ b/src/cmd/tpic/arcgen.c
@@ -211,4 +211,3 @@ quadrant(double x, double y)
else if( x> 0.0 && y<=0.0) return(4);
else return 0; /* shut up lint */
}
-
diff --git a/src/cmd/tpic/input.c b/src/cmd/tpic/input.c
index 6885f650..85b7dbb5 100644
--- a/src/cmd/tpic/input.c
+++ b/src/cmd/tpic/input.c
@@ -438,7 +438,7 @@ errcheck(double x, char *s)
return x;
}
-char errbuf[200];
+char errbuf[1000];
void
yyerror(char *s)
diff --git a/src/cmd/tpic/linegen.c b/src/cmd/tpic/linegen.c
index 8a7e08be..639cdb47 100644
--- a/src/cmd/tpic/linegen.c
+++ b/src/cmd/tpic/linegen.c
@@ -197,7 +197,7 @@ linegen(int type)
extreme(ex, ey);
nx = xi; ny = yi;
}
-
+
}
p->o_ddval = ddval;
if (dbg) {
diff --git a/src/cmd/tpic/pic.h b/src/cmd/tpic/pic.h
index 438e71a6..104caceb 100644
--- a/src/cmd/tpic/pic.h
+++ b/src/cmd/tpic/pic.h
@@ -11,7 +11,7 @@
#define dprintf if(dbg)printf
-extern char errbuf[200];
+extern char errbuf[1000];
#undef sprintf /* Snow Leopard */
@@ -285,4 +285,3 @@ void yyerror(char *s);
int yyparse(void);
#include "tex.h"
-
diff --git a/src/cmd/tpic/tex.c b/src/cmd/tpic/tex.c
index ade5df6b..678dba60 100644
--- a/src/cmd/tpic/tex.c
+++ b/src/cmd/tpic/tex.c
@@ -20,7 +20,7 @@ devarc(double x1, double y1, double x2, double y2, double xc, double yc, int r)
}
void
-box(double x0, double y0, double x1, double y1)
+box(double x0, double y0, double x1, double y1)
{
fprintf(TEXFILE," \\special{pa %d %d}",TRX(x0),TRY(y0));
fprintf(TEXFILE,"\\special{pa %d %d}",TRX(x1),TRY(y0));
@@ -104,16 +104,16 @@ frame(double xs, double ys, double xf, double yf)
}
void
-line(double x0, double y0, double x1, double y1)
+line(double x0, double y0, double x1, double y1)
{
move(x0, y0);
vec(x1, y1);
}
void
-move(double xx, double yy)
+move(double xx, double yy)
{
- e1->copyx = xx;
+ e1->copyx = xx;
e1->copyy = yy;
}
@@ -136,7 +136,7 @@ FILE *TEXFILE;
void
openpl(void)
-{
+{
TEXFILE = stdout;
space(xmin, ymin, xmax, ymax);
@@ -152,7 +152,7 @@ openpl(void)
}
void
-range(double x0, double y0, double x1, double y1)
+range(double x0, double y0, double x1, double y1)
{
e1->xmin = x0;
e1->ymin = y0;
@@ -165,30 +165,30 @@ range(double x0, double y0, double x1, double y1)
}
void
-rmove(double xx, double yy)
+rmove(double xx, double yy)
{
e1->copyx += xx;
e1->copyy += yy;
}
void
-rvec(double xx, double yy)
+rvec(double xx, double yy)
{
vec(xx+e1->copyx, yy+e1->copyy);
}
void
-sbox(double x0, double y0, double x1, double y1)
+sbox(double x0, double y0, double x1, double y1)
{
fprintf(TEXFILE," \\special{bk}%%\n");
box(x0, y0, x1, y1);
}
void
-vec(double xx, double yy)
+vec(double xx, double yy)
{
fprintf(TEXFILE," \\special{pa %d %d}",TRX(e1->copyx),TRY(e1->copyy));
- e1->copyx = xx;
+ e1->copyx = xx;
e1->copyy = yy;
fprintf(TEXFILE,"\\special{pa %d %d}",TRX(xx),TRY(yy));
switch(e1->pen){