diff options
Diffstat (limited to 'usr/src/ucbcmd/plot/libplot/bitgraph')
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/bitgraph/arc.c | 18 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/bitgraph/box.c | 17 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/bitgraph/circle.c | 19 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/bitgraph/close.c | 18 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/bitgraph/cont.c | 19 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/bitgraph/dot.c | 19 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/bitgraph/erase.c | 18 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/bitgraph/label.c | 19 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/bitgraph/line.c | 19 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/bitgraph/linemod.c | 19 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/bitgraph/move.c | 19 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/bitgraph/open.c | 18 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/bitgraph/point.c | 19 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/bitgraph/space.c | 19 |
14 files changed, 114 insertions, 146 deletions
diff --git a/usr/src/ucbcmd/plot/libplot/bitgraph/arc.c b/usr/src/ucbcmd/plot/libplot/bitgraph/arc.c index 6ba92aaddd..0a6ca1c5b0 100644 --- a/usr/src/ucbcmd/plot/libplot/bitgraph/arc.c +++ b/usr/src/ucbcmd/plot/libplot/bitgraph/arc.c @@ -1,20 +1,18 @@ +/* + * 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 "bg.h" @@ -22,8 +20,8 @@ #define side(x,y) (a*(x)+b*(y)+c > 0.0 ? 1 : -1) /* The beginning and ending points must be distinct. */ -arc(xc,yc,xbeg,ybeg,xend,yend) -int xc,yc,xbeg,ybeg,xend,yend; +void +arc(int xc, int yc, int xbeg, int ybeg, int xend, int yend) { double r, radius, costheta, sintheta; double a, b, c, x, y, tempX; diff --git a/usr/src/ucbcmd/plot/libplot/bitgraph/box.c b/usr/src/ucbcmd/plot/libplot/bitgraph/box.c index ce721eefec..57b9a92f88 100644 --- a/usr/src/ucbcmd/plot/libplot/bitgraph/box.c +++ b/usr/src/ucbcmd/plot/libplot/bitgraph/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/bitgraph/circle.c b/usr/src/ucbcmd/plot/libplot/bitgraph/circle.c index 3fe8b150e9..9afb4cd11c 100644 --- a/usr/src/ucbcmd/plot/libplot/bitgraph/circle.c +++ b/usr/src/ucbcmd/plot/libplot/bitgraph/circle.c @@ -1,24 +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 (xc,yc,r) -int xc,yc,r; +void +circle (int xc, int yc, int r) { arc(xc,yc, xc+r,yc, xc-r,yc); arc(xc,yc, xc-r,yc, xc+r,yc); diff --git a/usr/src/ucbcmd/plot/libplot/bitgraph/close.c b/usr/src/ucbcmd/plot/libplot/bitgraph/close.c index e38aa6d949..7cb0e9bc79 100644 --- a/usr/src/ucbcmd/plot/libplot/bitgraph/close.c +++ b/usr/src/ucbcmd/plot/libplot/bitgraph/close.c @@ -1,26 +1,24 @@ +/* + * 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 <signal.h> #include "bg.h" -closepl() +void +closepl(void) { /* recieve interupts */ signal(SIGINT, SIG_IGN); diff --git a/usr/src/ucbcmd/plot/libplot/bitgraph/cont.c b/usr/src/ucbcmd/plot/libplot/bitgraph/cont.c index 21e8dd0a93..cdac4c4132 100644 --- a/usr/src/ucbcmd/plot/libplot/bitgraph/cont.c +++ b/usr/src/ucbcmd/plot/libplot/bitgraph/cont.c @@ -1,26 +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" #include "bg.h" -cont(xi,yi) -int xi,yi; +void +cont(int xi, int yi) { currentx = scaleX(xi); currenty = scaleY(yi); diff --git a/usr/src/ucbcmd/plot/libplot/bitgraph/dot.c b/usr/src/ucbcmd/plot/libplot/bitgraph/dot.c index 6aa953f3a3..47521f8e66 100644 --- a/usr/src/ucbcmd/plot/libplot/bitgraph/dot.c +++ b/usr/src/ucbcmd/plot/libplot/bitgraph/dot.c @@ -1,21 +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/bitgraph/erase.c b/usr/src/ucbcmd/plot/libplot/bitgraph/erase.c index f250b14ac4..b098807156 100644 --- a/usr/src/ucbcmd/plot/libplot/bitgraph/erase.c +++ b/usr/src/ucbcmd/plot/libplot/bitgraph/erase.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" #include "bg.h" -erase() +void +erase(void) { putchar( ESC ); printf("[H"); diff --git a/usr/src/ucbcmd/plot/libplot/bitgraph/label.c b/usr/src/ucbcmd/plot/libplot/bitgraph/label.c index bcf807b09f..84ed8dcae2 100644 --- a/usr/src/ucbcmd/plot/libplot/bitgraph/label.c +++ b/usr/src/ucbcmd/plot/libplot/bitgraph/label.c @@ -1,24 +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" -label(s) -char *s; +void +label(char *s) { printf("%s", s); } diff --git a/usr/src/ucbcmd/plot/libplot/bitgraph/line.c b/usr/src/ucbcmd/plot/libplot/bitgraph/line.c index ee9771b65e..30e1b92073 100644 --- a/usr/src/ucbcmd/plot/libplot/bitgraph/line.c +++ b/usr/src/ucbcmd/plot/libplot/bitgraph/line.c @@ -1,26 +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" #include "bg.h" -line(x0,y0,x1,y1) -int x0,y0,x1,y1; +void +line(int x0, int y0, int x1, int y1) { if(scaleX(x0)==currentx && scaleY(y0)==currenty) cont(x1,y1); diff --git a/usr/src/ucbcmd/plot/libplot/bitgraph/linemod.c b/usr/src/ucbcmd/plot/libplot/bitgraph/linemod.c index 11f3e9e517..ee4f67b863 100644 --- a/usr/src/ucbcmd/plot/libplot/bitgraph/linemod.c +++ b/usr/src/ucbcmd/plot/libplot/bitgraph/linemod.c @@ -1,21 +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" -linemod(){ +void +linemod(void) +{ } diff --git a/usr/src/ucbcmd/plot/libplot/bitgraph/move.c b/usr/src/ucbcmd/plot/libplot/bitgraph/move.c index 7fb50e4584..1d16e788f0 100644 --- a/usr/src/ucbcmd/plot/libplot/bitgraph/move.c +++ b/usr/src/ucbcmd/plot/libplot/bitgraph/move.c @@ -1,26 +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" #include "bg.h" -move(xi,yi) -int xi,yi; +void +move(int xi, int yi) { currentx = scaleX(xi); currenty = scaleY(yi); diff --git a/usr/src/ucbcmd/plot/libplot/bitgraph/open.c b/usr/src/ucbcmd/plot/libplot/bitgraph/open.c index 9735e7a3cc..a096c7ca4f 100644 --- a/usr/src/ucbcmd/plot/libplot/bitgraph/open.c +++ b/usr/src/ucbcmd/plot/libplot/bitgraph/open.c @@ -1,21 +1,18 @@ +/* + * 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" /* * Displays plot files on a BBN bitgraph terminal. @@ -30,7 +27,8 @@ double lowx = 0.0; double lowy = 0.0; double scale = 1.0; -openpl() +void +openpl(void) { void closepl(); diff --git a/usr/src/ucbcmd/plot/libplot/bitgraph/point.c b/usr/src/ucbcmd/plot/libplot/bitgraph/point.c index a177c3bffd..6eb6240959 100644 --- a/usr/src/ucbcmd/plot/libplot/bitgraph/point.c +++ b/usr/src/ucbcmd/plot/libplot/bitgraph/point.c @@ -1,24 +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" -point(xi, yi) -int xi, yi; +void +point(int xi, int yi) { move(xi, yi); label("."); diff --git a/usr/src/ucbcmd/plot/libplot/bitgraph/space.c b/usr/src/ucbcmd/plot/libplot/bitgraph/space.c index e98efec98b..16e993e587 100644 --- a/usr/src/ucbcmd/plot/libplot/bitgraph/space.c +++ b/usr/src/ucbcmd/plot/libplot/bitgraph/space.c @@ -1,26 +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" #include "bg.h" -space(x0,y0,x1,y1) -int x0,y0,x1,y1; +void +space(int x0, int y0, int x1, int y1) { double scalex, scaley; lowx = x0; |