diff options
Diffstat (limited to 'usr/src/ucbcmd/plot/libplot/t4013')
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/t4013/arc.c | 28 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/t4013/box.c | 17 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/t4013/circle.c | 18 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/t4013/close.c | 24 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/t4013/dot.c | 18 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/t4013/erase.c | 19 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/t4013/label.c | 20 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/t4013/line.c | 18 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/t4013/linemod.c | 18 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/t4013/move.c | 18 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/t4013/open.c | 23 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/t4013/point.c | 19 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/t4013/space.c | 20 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/t4013/subr.c | 27 |
14 files changed, 154 insertions, 133 deletions
diff --git a/usr/src/ucbcmd/plot/libplot/t4013/arc.c b/usr/src/ucbcmd/plot/libplot/t4013/arc.c index 69bb6f5697..1a87b980d9 100644 --- a/usr/src/ucbcmd/plot/libplot/t4013/arc.c +++ b/usr/src/ucbcmd/plot/libplot/t4013/arc.c @@ -1,25 +1,30 @@ +/* + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ /* All Rights Reserved */ - -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - /* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. */ -/* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ +#pragma ident "%Z%%M% %I% %E% SMI" int del = 20; -step(d){ + +void +step(int d) +{ del = d; } -arc(x,y,x0,y0,x1,y1){ + +void +arc(int x, int y, int x0, int y0, int x1, int y1) +{ double pc; double sqrt(); int flg,m,xc,yc,xs,ys,qs,qf; @@ -110,7 +115,10 @@ arc(x,y,x0,y0,x1,y1){ } } } -quad(x,y,xp,yp){ + +int +quad(int x,int y,int xp,int yp) +{ if(x < xp) if(y <= yp)return(1); else return(4); diff --git a/usr/src/ucbcmd/plot/libplot/t4013/box.c b/usr/src/ucbcmd/plot/libplot/t4013/box.c index ce721eefec..57b9a92f88 100644 --- a/usr/src/ucbcmd/plot/libplot/t4013/box.c +++ b/usr/src/ucbcmd/plot/libplot/t4013/box.c @@ -1,22 +1,21 @@ +/* + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ /* All Rights Reserved */ - -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - /* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. */ -/* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ - +#pragma ident "%Z%%M% %I% %E% SMI" -box(x0, y0, x1, y1) +void +box(int x0, int y0, int x1, int y1) { move(x0, y0); cont(x0, y1); diff --git a/usr/src/ucbcmd/plot/libplot/t4013/circle.c b/usr/src/ucbcmd/plot/libplot/t4013/circle.c index 45bbe8bdf5..12666d94da 100644 --- a/usr/src/ucbcmd/plot/libplot/t4013/circle.c +++ b/usr/src/ucbcmd/plot/libplot/t4013/circle.c @@ -1,21 +1,21 @@ +/* + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ /* All Rights Reserved */ - -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - /* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. */ -/* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ - +#pragma ident "%Z%%M% %I% %E% SMI" -circle(x,y,r){ +void +circle(int x, int y, int r) +{ arc(x,y,x+r,y,x+r,y); } diff --git a/usr/src/ucbcmd/plot/libplot/t4013/close.c b/usr/src/ucbcmd/plot/libplot/t4013/close.c index 0d1d8256e0..1d9111892d 100644 --- a/usr/src/ucbcmd/plot/libplot/t4013/close.c +++ b/usr/src/ucbcmd/plot/libplot/t4013/close.c @@ -1,27 +1,31 @@ +/* + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ /* All Rights Reserved */ - -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - /* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. */ -/* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ - +#pragma ident "%Z%%M% %I% %E% SMI" #include <stdio.h> -closevt(){ + +void +closevt(void) +{ putch(037); fflush(stdout); } -closepl(){ + +void +closepl(void) +{ putch(037); fflush(stdout); } diff --git a/usr/src/ucbcmd/plot/libplot/t4013/dot.c b/usr/src/ucbcmd/plot/libplot/t4013/dot.c index a9cf01dd0a..47521f8e66 100644 --- a/usr/src/ucbcmd/plot/libplot/t4013/dot.c +++ b/usr/src/ucbcmd/plot/libplot/t4013/dot.c @@ -1,20 +1,20 @@ +/* + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ /* All Rights Reserved */ - -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - /* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. */ -/* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ - +#pragma ident "%Z%%M% %I% %E% SMI" -dot(){ +void +dot(void) +{ } diff --git a/usr/src/ucbcmd/plot/libplot/t4013/erase.c b/usr/src/ucbcmd/plot/libplot/t4013/erase.c index 9f0a75482c..4939b86ec4 100644 --- a/usr/src/ucbcmd/plot/libplot/t4013/erase.c +++ b/usr/src/ucbcmd/plot/libplot/t4013/erase.c @@ -1,25 +1,26 @@ +/* + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ /* All Rights Reserved */ - -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - /* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. */ -/* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ - +#pragma ident "%Z%%M% %I% %E% SMI" extern int ohiy; extern int ohix; extern int oloy; -erase(){ + +void +erase(void) +{ int i; putch(033); putch(014); diff --git a/usr/src/ucbcmd/plot/libplot/t4013/label.c b/usr/src/ucbcmd/plot/libplot/t4013/label.c index a4118a9e99..f53011803b 100644 --- a/usr/src/ucbcmd/plot/libplot/t4013/label.c +++ b/usr/src/ucbcmd/plot/libplot/t4013/label.c @@ -1,25 +1,23 @@ +/* + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ /* All Rights Reserved */ - -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - /* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. */ -/* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ - +#pragma ident "%Z%%M% %I% %E% SMI" -label(s) -char *s; +void +label(char *s) { - register i,c; + int i, c; putch(037); /* alpha mode */ for(i=0; c=s[i]; i++) putch(c); diff --git a/usr/src/ucbcmd/plot/libplot/t4013/line.c b/usr/src/ucbcmd/plot/libplot/t4013/line.c index 23bc2baccf..6f349be478 100644 --- a/usr/src/ucbcmd/plot/libplot/t4013/line.c +++ b/usr/src/ucbcmd/plot/libplot/t4013/line.c @@ -1,22 +1,22 @@ +/* + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ /* All Rights Reserved */ - -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - /* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. */ -/* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ - +#pragma ident "%Z%%M% %I% %E% SMI" -line(x0,y0,x1,y1){ +void +line(int x0, int y0, int x1, int y1) +{ move(x0,y0); cont(x1,y1); } diff --git a/usr/src/ucbcmd/plot/libplot/t4013/linemod.c b/usr/src/ucbcmd/plot/libplot/t4013/linemod.c index 77d60374e4..dba9ee4758 100644 --- a/usr/src/ucbcmd/plot/libplot/t4013/linemod.c +++ b/usr/src/ucbcmd/plot/libplot/t4013/linemod.c @@ -1,23 +1,21 @@ +/* + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ /* All Rights Reserved */ - -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - /* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. */ -/* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ - +#pragma ident "%Z%%M% %I% %E% SMI" -linemod(s) -char *s; +void +linemod(char *s) { /* ignored on 4013 */ } diff --git a/usr/src/ucbcmd/plot/libplot/t4013/move.c b/usr/src/ucbcmd/plot/libplot/t4013/move.c index a63a3f218a..0d7da25f83 100644 --- a/usr/src/ucbcmd/plot/libplot/t4013/move.c +++ b/usr/src/ucbcmd/plot/libplot/t4013/move.c @@ -1,22 +1,22 @@ +/* + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ /* All Rights Reserved */ - -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - /* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. */ -/* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ - +#pragma ident "%Z%%M% %I% %E% SMI" -move(xi,yi){ +void +move(int xi, int yi) +{ putch(035); cont(xi,yi); } diff --git a/usr/src/ucbcmd/plot/libplot/t4013/open.c b/usr/src/ucbcmd/plot/libplot/t4013/open.c index 3b3a6f672c..b573a91adf 100644 --- a/usr/src/ucbcmd/plot/libplot/t4013/open.c +++ b/usr/src/ucbcmd/plot/libplot/t4013/open.c @@ -1,22 +1,25 @@ -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - - -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - /* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. */ +/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ +/* All Rights Reserved */ + /* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. */ -openvt () +#pragma ident "%Z%%M% %I% %E% SMI" + +void +openvt(void) { } -openpl(){ + +void +openpl(void) +{ } diff --git a/usr/src/ucbcmd/plot/libplot/t4013/point.c b/usr/src/ucbcmd/plot/libplot/t4013/point.c index 1e5393d5e5..0cdd3c032f 100644 --- a/usr/src/ucbcmd/plot/libplot/t4013/point.c +++ b/usr/src/ucbcmd/plot/libplot/t4013/point.c @@ -1,21 +1,22 @@ -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - - -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - /* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. */ +/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ +/* All Rights Reserved */ + /* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. */ -point(xi,yi){ +#pragma ident "%Z%%M% %I% %E% SMI" + +void +point(int xi, int yi) +{ move(xi,yi); cont(xi,yi); } diff --git a/usr/src/ucbcmd/plot/libplot/t4013/space.c b/usr/src/ucbcmd/plot/libplot/t4013/space.c index 3bc365d8c7..1c4d3fcf9f 100644 --- a/usr/src/ucbcmd/plot/libplot/t4013/space.c +++ b/usr/src/ucbcmd/plot/libplot/t4013/space.c @@ -1,20 +1,19 @@ -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - - -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - /* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. */ +/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ +/* All Rights Reserved */ + /* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. */ +#pragma ident "%Z%%M% %I% %E% SMI" + extern float botx; extern float boty; extern float obotx; @@ -22,7 +21,10 @@ extern float oboty; extern float scalex; extern float scaley; extern int scaleflag; -space(x0,y0,x1,y1){ + +void +space(int x0, int y0, int x1, int y1) +{ botx = 0.; boty = 0.; obotx = x0; diff --git a/usr/src/ucbcmd/plot/libplot/t4013/subr.c b/usr/src/ucbcmd/plot/libplot/t4013/subr.c index 0772971b88..97f16737f8 100644 --- a/usr/src/ucbcmd/plot/libplot/t4013/subr.c +++ b/usr/src/ucbcmd/plot/libplot/t4013/subr.c @@ -1,21 +1,21 @@ -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - - -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - /* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. */ +/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ +/* All Rights Reserved */ + /* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. */ +#pragma ident "%Z%%M% %I% %E% SMI" + #include <stdio.h> + float obotx = 0.; float oboty = 0.; float botx = 0.; @@ -27,7 +27,12 @@ int scaleflag; int oloy = -1; int ohiy = -1; int ohix = -1; -cont(x,y){ + +void putch(int); + +void +cont(int x, int y) +{ int hix,hiy,lox,loy; int n; x = (x-obotx)*scalex + botx; @@ -56,6 +61,8 @@ cont(x,y){ putch(0); } -putch(c){ +void +putch(int c) +{ putc(c,stdout); } |