aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/plot
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-04-19 23:58:57 +0000
committerrsc <devnull@localhost>2004-04-19 23:58:57 +0000
commit67e4fce4f5b62cf5f9e6b4b7b59ff2b2818d21f5 (patch)
treec38707d39d594b7807a105ae5ea6d617184f764b /src/cmd/plot
parentb829c3547001eb2a3cf846410deb15ddd7349b96 (diff)
downloadplan9port-67e4fce4f5b62cf5f9e6b4b7b59ff2b2818d21f5.tar.gz
plan9port-67e4fce4f5b62cf5f9e6b4b7b59ff2b2818d21f5.tar.bz2
plan9port-67e4fce4f5b62cf5f9e6b4b7b59ff2b2818d21f5.zip
make mac work
Diffstat (limited to 'src/cmd/plot')
-rw-r--r--src/cmd/plot/libplot/machdep.c1
-rw-r--r--src/cmd/plot/libplot/mplot.h4
-rw-r--r--src/cmd/plot/libplot/sbox.c1
3 files changed, 4 insertions, 2 deletions
diff --git a/src/cmd/plot/libplot/machdep.c b/src/cmd/plot/libplot/machdep.c
index abcb761f..4f60dccc 100644
--- a/src/cmd/plot/libplot/machdep.c
+++ b/src/cmd/plot/libplot/machdep.c
@@ -1,4 +1,5 @@
#include "mplot.h"
+int mapminx, mapminy, mapmaxx, mapmaxy;
Image *offscreen;
/*
* Clear the window from x0, y0 to x1, y1 (inclusive) to color c
diff --git a/src/cmd/plot/libplot/mplot.h b/src/cmd/plot/libplot/mplot.h
index 99e27efd..ee924dde 100644
--- a/src/cmd/plot/libplot/mplot.h
+++ b/src/cmd/plot/libplot/mplot.h
@@ -29,8 +29,8 @@ struct seg {
/*
* display parameters
*/
-int clipminx, clipminy, clipmaxx, clipmaxy; /* clipping rectangle */
-int mapminx, mapminy, mapmaxx, mapmaxy; /* centered square */
+extern int clipminx, clipminy, clipmaxx, clipmaxy; /* clipping rectangle */
+extern int mapminx, mapminy, mapmaxx, mapmaxy; /* centered square */
/*
* Prototypes
*/
diff --git a/src/cmd/plot/libplot/sbox.c b/src/cmd/plot/libplot/sbox.c
index 479790b9..fee57dfc 100644
--- a/src/cmd/plot/libplot/sbox.c
+++ b/src/cmd/plot/libplot/sbox.c
@@ -1,4 +1,5 @@
#include "mplot.h"
+int clipminx, clipminy, clipmaxx, clipmaxy;
void sbox(double xx0, double yy0, double xx1, double yy1){
int x0=SCX(xx0), y0=SCY(yy0), x1=SCX(xx1), y1=SCY(yy1);
int t;