diff options
Diffstat (limited to 'usr/src/ucbcmd/plot/libplot')
190 files changed, 1984 insertions, 1883 deletions
diff --git a/usr/src/ucbcmd/plot/libplot/aed/aed.h b/usr/src/ucbcmd/plot/libplot/aed/aed.h index fc1a312ae2..ef121b70e4 100644 --- a/usr/src/ucbcmd/plot/libplot/aed/aed.h +++ b/usr/src/ucbcmd/plot/libplot/aed/aed.h @@ -1,20 +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. */ +#ifndef _AED_H +#define _AED_H + +#pragma ident "%Z%%M% %I% %E% SMI" + /* * Displays plot files on an AED512 graphics terminal. */ @@ -24,7 +26,7 @@ extern char dbuf[BUFSIZ]; /* Used to buffer display characters */ extern struct sgttyb sgttyb; /* Used to save terminal control bits */ -extern curx, cury; /* Current screen position */ +extern int curx, cury; /* Current screen position */ extern int xbot, ybot; /* Coordinates of screen lower-left corner */ extern int scale; /* The number of pixels per 2**12 units * of world coordinates. @@ -34,3 +36,5 @@ extern int scale; /* The number of pixels per 2**12 units #define GRXMAX 511 /* Maximum x-coordinate of screen */ #define GRYMAX 482 /* Maximum y-coordinate of screen */ + +#endif /* _AED_H */ diff --git a/usr/src/ucbcmd/plot/libplot/aed/arc.c b/usr/src/ucbcmd/plot/libplot/aed/arc.c index c8d300492b..72192c14f0 100644 --- a/usr/src/ucbcmd/plot/libplot/aed/arc.c +++ b/usr/src/ucbcmd/plot/libplot/aed/arc.c @@ -1,20 +1,20 @@ -/* 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" -arc(){ +void +arc(void) +{ } diff --git a/usr/src/ucbcmd/plot/libplot/aed/box.c b/usr/src/ucbcmd/plot/libplot/aed/box.c index dce4c8281b..b68c2a40fc 100644 --- a/usr/src/ucbcmd/plot/libplot/aed/box.c +++ b/usr/src/ucbcmd/plot/libplot/aed/box.c @@ -1,22 +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" -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/aed/circle.c b/usr/src/ucbcmd/plot/libplot/aed/circle.c index a622681905..6ccbb0fc7a 100644 --- a/usr/src/ucbcmd/plot/libplot/aed/circle.c +++ b/usr/src/ucbcmd/plot/libplot/aed/circle.c @@ -1,20 +1,18 @@ -/* 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 "aed.h" @@ -27,8 +25,8 @@ * A circle of radius r is drawn at (x,y). *--------------------------------------------------------- */ -circle(x, y, r) -int x, y, r; +void +circle(int x, int y, int r) { char buf[3]; setcolor("01"); diff --git a/usr/src/ucbcmd/plot/libplot/aed/close.c b/usr/src/ucbcmd/plot/libplot/aed/close.c index 468d4a3177..41ad3cf211 100644 --- a/usr/src/ucbcmd/plot/libplot/aed/close.c +++ b/usr/src/ucbcmd/plot/libplot/aed/close.c @@ -1,20 +1,18 @@ -/* 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 "aed.h" @@ -28,7 +26,8 @@ * The graphics display modes are reset. *--------------------------------------------------------- */ -closepl() +void +closepl(void) { fputs("Q00204\6", stdout); (void) fflush(stdout); diff --git a/usr/src/ucbcmd/plot/libplot/aed/cont.c b/usr/src/ucbcmd/plot/libplot/aed/cont.c index 0d37692198..ec1303b568 100644 --- a/usr/src/ucbcmd/plot/libplot/aed/cont.c +++ b/usr/src/ucbcmd/plot/libplot/aed/cont.c @@ -1,20 +1,18 @@ -/* 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 "aed.h" @@ -25,8 +23,8 @@ * Side Effects: As above. *--------------------------------------------------------- */ -cont(x, y) -int x, y; +void +cont(int x, int y) { line(curx, cury, x, y); } diff --git a/usr/src/ucbcmd/plot/libplot/aed/dot.c b/usr/src/ucbcmd/plot/libplot/aed/dot.c index a0d3dcca35..b2f772d891 100644 --- a/usr/src/ucbcmd/plot/libplot/aed/dot.c +++ b/usr/src/ucbcmd/plot/libplot/aed/dot.c @@ -1,20 +1,20 @@ -/* 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" -dot(){ +void +dot(void) +{ } diff --git a/usr/src/ucbcmd/plot/libplot/aed/erase.c b/usr/src/ucbcmd/plot/libplot/aed/erase.c index bdcd5172f6..46387560c4 100644 --- a/usr/src/ucbcmd/plot/libplot/aed/erase.c +++ b/usr/src/ucbcmd/plot/libplot/aed/erase.c @@ -1,20 +1,18 @@ -/* 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 "aed.h" @@ -25,7 +23,8 @@ * Side Effects: The screen is cleared. *--------------------------------------------------------- */ -erase() +void +erase(void) { setcolor("FF"); putc('\14', stdout); diff --git a/usr/src/ucbcmd/plot/libplot/aed/label.c b/usr/src/ucbcmd/plot/libplot/aed/label.c index 78b55bfecc..227a316ac7 100644 --- a/usr/src/ucbcmd/plot/libplot/aed/label.c +++ b/usr/src/ucbcmd/plot/libplot/aed/label.c @@ -1,20 +1,18 @@ -/* 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 "aed.h" @@ -29,8 +27,8 @@ * The current position is updated accordingly. *--------------------------------------------------------- */ -label(s) -char *s; +void +label(char *s) { setcolor("02"); putc('Q', stdout); diff --git a/usr/src/ucbcmd/plot/libplot/aed/line.c b/usr/src/ucbcmd/plot/libplot/aed/line.c index f1dbe93bf2..e5e8259631 100644 --- a/usr/src/ucbcmd/plot/libplot/aed/line.c +++ b/usr/src/ucbcmd/plot/libplot/aed/line.c @@ -1,13 +1,33 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * 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) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ +#pragma ident "%Z%%M% %I% %E% SMI" #include "aed.h" @@ -20,8 +40,8 @@ * A line is drawn on the screen between (x1, y1) and (x2, y2). *--------------------------------------------------------- */ -line(x1, y1, x2, y2) -int x1, y1, x2, y2; +void +line(int x1, int y1, int x2, int y2) { setcolor("01"); putc('Q', stdout); diff --git a/usr/src/ucbcmd/plot/libplot/aed/linemod.c b/usr/src/ucbcmd/plot/libplot/aed/linemod.c index b081ceaa17..18b169c9f6 100644 --- a/usr/src/ucbcmd/plot/libplot/aed/linemod.c +++ b/usr/src/ucbcmd/plot/libplot/aed/linemod.c @@ -1,20 +1,18 @@ -/* 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 "aed.h" @@ -29,8 +27,8 @@ * or "dotdashed". If s isn't recognized, then "solid" is used. *--------------------------------------------------------- */ -linemod(s) -char *s; +void +linemod(char *s) { if (strcmp(s, "dotted") == 0) fputs("1AAFF", stdout); diff --git a/usr/src/ucbcmd/plot/libplot/aed/move.c b/usr/src/ucbcmd/plot/libplot/aed/move.c index 393d6f153c..0f0c7caad8 100644 --- a/usr/src/ucbcmd/plot/libplot/aed/move.c +++ b/usr/src/ucbcmd/plot/libplot/aed/move.c @@ -1,20 +1,18 @@ -/* 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 "aed.h" @@ -25,8 +23,8 @@ * Side Effects: As above. *--------------------------------------------------------- */ -move(x, y) -int x, y; +void +move(int x, int y) { curx = x; cury = y; diff --git a/usr/src/ucbcmd/plot/libplot/aed/open.c b/usr/src/ucbcmd/plot/libplot/aed/open.c index 6bbdc8befc..1a19feda04 100644 --- a/usr/src/ucbcmd/plot/libplot/aed/open.c +++ b/usr/src/ucbcmd/plot/libplot/aed/open.c @@ -1,20 +1,18 @@ -/* 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" /* * Displays plot files on a AED512 graphics terminal. @@ -51,7 +49,8 @@ static int colors[] = {200, 200, 200, 0, 0, 125, 125, 0, 0, 125, 0, 0}; * Errors: None. *--------------------------------------------------------- */ -openpl() +void +openpl(void) { int flags, *p, i; char dum[4]; diff --git a/usr/src/ucbcmd/plot/libplot/aed/point.c b/usr/src/ucbcmd/plot/libplot/aed/point.c index 7b8fdb2e30..d45da4617d 100644 --- a/usr/src/ucbcmd/plot/libplot/aed/point.c +++ b/usr/src/ucbcmd/plot/libplot/aed/point.c @@ -1,20 +1,18 @@ -/* 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 "aed.h" @@ -28,8 +26,8 @@ * The point is made the current point. *--------------------------------------------------------- */ -point(x, y) -int x, y; +void +point(int x, int y) { setcolor("01"); putc('Q', stdout); diff --git a/usr/src/ucbcmd/plot/libplot/aed/space.c b/usr/src/ucbcmd/plot/libplot/aed/space.c index 1bbc37b7e5..7c9fdd8e16 100644 --- a/usr/src/ucbcmd/plot/libplot/aed/space.c +++ b/usr/src/ucbcmd/plot/libplot/aed/space.c @@ -1,20 +1,18 @@ -/* 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 "aed.h" @@ -29,8 +27,8 @@ * Our own variables scale, xbot, and ybot are changed. *--------------------------------------------------------- */ -space(x0, y0, x1, y1) -int x0, y0, x1, y1; +void +space(int x0, int y0, int x1, int y1) { int xscale, yscale, xsize, ysize; xscale = (GRXMAX<<12)/(x1-x0); diff --git a/usr/src/ucbcmd/plot/libplot/aed/subr.c b/usr/src/ucbcmd/plot/libplot/aed/subr.c index 57ea924424..e771ae6ffc 100644 --- a/usr/src/ucbcmd/plot/libplot/aed/subr.c +++ b/usr/src/ucbcmd/plot/libplot/aed/subr.c @@ -1,20 +1,18 @@ -/* 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 "aed.h" @@ -35,12 +33,15 @@ static char hex[] = "0123456789ABCDEF"; * Side Effects: * The string contains the value of the low-order nchars 4-bit chunks * of val, as represented in hexadecimal. String is zero-filled. + * + * Parameters + * val - Integer value to be converted. + * string - Pointer to area for converted result. + * nchars - Number of characters to be converted. *--------------------------------------------------------- */ -chex(val, string, nchars) -int val; /* Integer value to be converted. */ -char *string; /* Pointer to area for converted result. */ -int nchars; /* Number of characters to be converted. */ +void +chex(int val, char *string, int nchars) { string = &(string[nchars]); *string = '\0'; @@ -62,13 +63,15 @@ int nchars; /* Number of characters to be converted. */ * for values indicated by "xy20" in the user manual. * * Errors: None. + * + * Parameters: + * x, y - The coordinates to be output. Note: these + * are world coordinates, not screen ones. We + * scale in this routine. *--------------------------------------------------------- */ -outxy20(x, y) -int x, y; /* The coordinates to be output. Note: - * these are world coordinates, not screen - * ones. We scale in this routine. - */ +void +outxy20(int x, int y) { char s1[4], s2[4], s3[4]; x = ((x - xbot) * scale)>>12; @@ -87,12 +90,14 @@ int x, y; /* The coordinates to be output. Note: * Side Effects: * The current color in the display is set to pcolor, if it * isn't that already. + * + * Parameter: + * pcolor - Pointer to a string giving the desired color + * in hexadecimal *--------------------------------------------------------- */ -setcolor(pcolor) -char *pcolor; /* Pointer to a string giving the desired - * color in hexadecimal. - */ +void +setcolor(char *pcolor) { static char curcolor[] = "xx"; if ((pcolor[0] != curcolor[0]) || (pcolor[1] != curcolor[1])) 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; diff --git a/usr/src/ucbcmd/plot/libplot/dumb/arc.c b/usr/src/ucbcmd/plot/libplot/dumb/arc.c index 7bd038a3e2..d5727f5b2c 100644 --- a/usr/src/ucbcmd/plot/libplot/dumb/arc.c +++ b/usr/src/ucbcmd/plot/libplot/dumb/arc.c @@ -1,24 +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" #include "dumb.h" -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) { } diff --git a/usr/src/ucbcmd/plot/libplot/dumb/box.c b/usr/src/ucbcmd/plot/libplot/dumb/box.c index ce721eefec..57b9a92f88 100644 --- a/usr/src/ucbcmd/plot/libplot/dumb/box.c +++ b/usr/src/ucbcmd/plot/libplot/dumb/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/dumb/circle.c b/usr/src/ucbcmd/plot/libplot/dumb/circle.c index 6dab0dce38..1baa52d770 100644 --- a/usr/src/ucbcmd/plot/libplot/dumb/circle.c +++ b/usr/src/ucbcmd/plot/libplot/dumb/circle.c @@ -1,19 +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" -circle(){ +void +circle(void) +{ } diff --git a/usr/src/ucbcmd/plot/libplot/dumb/close.c b/usr/src/ucbcmd/plot/libplot/dumb/close.c index 979b8dc369..14ef59e64f 100644 --- a/usr/src/ucbcmd/plot/libplot/dumb/close.c +++ b/usr/src/ucbcmd/plot/libplot/dumb/close.c @@ -1,25 +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 "dumb.h" -closepl() +void +closepl(void) { int i, j; diff --git a/usr/src/ucbcmd/plot/libplot/dumb/cont.c b/usr/src/ucbcmd/plot/libplot/dumb/cont.c index 3233e5b49f..014f337aad 100644 --- a/usr/src/ucbcmd/plot/libplot/dumb/cont.c +++ b/usr/src/ucbcmd/plot/libplot/dumb/cont.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 "dumb.h" -cont(x, y) - int x,y; +void +cont(int x, int y) { int x1, y1; x1 = x; diff --git a/usr/src/ucbcmd/plot/libplot/dumb/dot.c b/usr/src/ucbcmd/plot/libplot/dumb/dot.c index a9cf01dd0a..47521f8e66 100644 --- a/usr/src/ucbcmd/plot/libplot/dumb/dot.c +++ b/usr/src/ucbcmd/plot/libplot/dumb/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/dumb/erase.c b/usr/src/ucbcmd/plot/libplot/dumb/erase.c index dae078fe39..5aec3c4706 100644 --- a/usr/src/ucbcmd/plot/libplot/dumb/erase.c +++ b/usr/src/ucbcmd/plot/libplot/dumb/erase.c @@ -1,26 +1,25 @@ +/* + * 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 "dumb.h" -erase() +void +erase(void) { - register int i, j; + int i, j; for(i=0;i<COLS;i++) for(j=0;j<LINES;j++) diff --git a/usr/src/ucbcmd/plot/libplot/dumb/label.c b/usr/src/ucbcmd/plot/libplot/dumb/label.c index db28a34284..f11c569269 100644 --- a/usr/src/ucbcmd/plot/libplot/dumb/label.c +++ b/usr/src/ucbcmd/plot/libplot/dumb/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" #include "dumb.h" -label(string) - char *string; +void +label(char *string) { while(*string != '\0' && currentx < COLS){ screenmat[currentx][currenty] = *string++; diff --git a/usr/src/ucbcmd/plot/libplot/dumb/line.c b/usr/src/ucbcmd/plot/libplot/dumb/line.c index 01ae1418eb..07bdcb5752 100644 --- a/usr/src/ucbcmd/plot/libplot/dumb/line.c +++ b/usr/src/ucbcmd/plot/libplot/dumb/line.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 "dumb.h" -line(x0, y0, x1, y1) - int x0, y0, x1, y1; +void +line(int x0, int y0, int x1, int y1) { int x,y; diff --git a/usr/src/ucbcmd/plot/libplot/dumb/linemod.c b/usr/src/ucbcmd/plot/libplot/dumb/linemod.c index 47ceef55d3..675c429e0a 100644 --- a/usr/src/ucbcmd/plot/libplot/dumb/linemod.c +++ b/usr/src/ucbcmd/plot/libplot/dumb/linemod.c @@ -1,22 +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(s) -char *s; +void +linemod(char *s) { } diff --git a/usr/src/ucbcmd/plot/libplot/dumb/move.c b/usr/src/ucbcmd/plot/libplot/dumb/move.c index 2e6ea7ad32..61ec8177e6 100644 --- a/usr/src/ucbcmd/plot/libplot/dumb/move.c +++ b/usr/src/ucbcmd/plot/libplot/dumb/move.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 "dumb.h" -move(x,y) -int x,y; +void +move(int x, int y) { scale(x, y); currentx = x; diff --git a/usr/src/ucbcmd/plot/libplot/dumb/open.c b/usr/src/ucbcmd/plot/libplot/dumb/open.c index 26dad93202..50b2ef0b02 100644 --- a/usr/src/ucbcmd/plot/libplot/dumb/open.c +++ b/usr/src/ucbcmd/plot/libplot/dumb/open.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" /* * This accepts plot file formats and produces the appropriate plots @@ -35,7 +33,8 @@ int COLS,LINES; /* A very large screen! (probably should use malloc) */ char screenmat[MAXCOLS][MAXLINES]; -openpl() +void +openpl(void) { void closepl(); int i, j; diff --git a/usr/src/ucbcmd/plot/libplot/dumb/point.c b/usr/src/ucbcmd/plot/libplot/dumb/point.c index c6e72da637..fb6dbdb6a4 100644 --- a/usr/src/ucbcmd/plot/libplot/dumb/point.c +++ b/usr/src/ucbcmd/plot/libplot/dumb/point.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 "dumb.h" -point(x, y) - int x,y; +void +point(int x, int y) { scale(x, y); currentx = x; diff --git a/usr/src/ucbcmd/plot/libplot/dumb/space.c b/usr/src/ucbcmd/plot/libplot/dumb/space.c index dad2cff44b..c766243499 100644 --- a/usr/src/ucbcmd/plot/libplot/dumb/space.c +++ b/usr/src/ucbcmd/plot/libplot/dumb/space.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 "dumb.h" -space(x0, y0, x1, y1) - int x0, y0, x1, y1; +void +space(int x0, int y0, int x1, int y1) { minX = x0; rangeX = x1 -x0; diff --git a/usr/src/ucbcmd/plot/libplot/dumb/subr.c b/usr/src/ucbcmd/plot/libplot/dumb/subr.c index 102c483878..5ee8bf841e 100644 --- a/usr/src/ucbcmd/plot/libplot/dumb/subr.c +++ b/usr/src/ucbcmd/plot/libplot/dumb/subr.c @@ -1,28 +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 "dumb.h" -/* Does not plot first point -- assumed that it is already plotted */ -dda_line(ch, x0, y0, x1, y1) - char ch; - int x0, y0; /* already transformed to screen coords */ - int x1, y1; /* untransformed */ +/* + * Does not plot first point -- assumed that it is already plotted + * + * Parameters + * ch + * x0, y0 - already transformed to screen coords + * x1, y1 - untransformed + */ +void +dda_line(char ch, int x0, int y0, int x1, int y1) { int length, i; double deltaX, deltaY; diff --git a/usr/src/ucbcmd/plot/libplot/gigi/arc.c b/usr/src/ucbcmd/plot/libplot/gigi/arc.c index edaec6a548..2e3e9d0ad5 100644 --- a/usr/src/ucbcmd/plot/libplot/gigi/arc.c +++ b/usr/src/ucbcmd/plot/libplot/gigi/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 "gigi.h" @@ -34,8 +32,8 @@ #define side(x,y) (a*(x)+b*(y)+c > 0.0 ? 1 : -1) -arc(xcent,ycent,xbeg,ybeg,xend,yend) -int xcent,ycent,xbeg,ybeg,xend,yend; +void +arc(int xcent, int ycent, int xbeg, int ybeg, int xend, int yend) { double radius2, c2; double a,b,c; diff --git a/usr/src/ucbcmd/plot/libplot/gigi/box.c b/usr/src/ucbcmd/plot/libplot/gigi/box.c index ce721eefec..57b9a92f88 100644 --- a/usr/src/ucbcmd/plot/libplot/gigi/box.c +++ b/usr/src/ucbcmd/plot/libplot/gigi/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/gigi/circle.c b/usr/src/ucbcmd/plot/libplot/gigi/circle.c index f3442861ab..dbcb78f547 100644 --- a/usr/src/ucbcmd/plot/libplot/gigi/circle.c +++ b/usr/src/ucbcmd/plot/libplot/gigi/circle.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 "gigi.h" -circle (xc,yc,r) -int xc,yc,r; +void +circle(int xc, int yc, int r) { if(r < 1){ point(xc, yc); diff --git a/usr/src/ucbcmd/plot/libplot/gigi/close.c b/usr/src/ucbcmd/plot/libplot/gigi/close.c index 9373a4729d..3a4269669e 100644 --- a/usr/src/ucbcmd/plot/libplot/gigi/close.c +++ b/usr/src/ucbcmd/plot/libplot/gigi/close.c @@ -1,25 +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 "gigi.h" -closepl() +void +closepl(void) { /* recieve interupts */ signal(SIGINT, SIG_IGN); diff --git a/usr/src/ucbcmd/plot/libplot/gigi/cont.c b/usr/src/ucbcmd/plot/libplot/gigi/cont.c index 8005fd1f97..9db4464c2d 100644 --- a/usr/src/ucbcmd/plot/libplot/gigi/cont.c +++ b/usr/src/ucbcmd/plot/libplot/gigi/cont.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 "gigi.h" -cont(xi,yi) -int xi,yi; +void +cont(int xi, int yi) { currentx = xsc(xi); currenty = ysc(yi); diff --git a/usr/src/ucbcmd/plot/libplot/gigi/dot.c b/usr/src/ucbcmd/plot/libplot/gigi/dot.c index a9cf01dd0a..47521f8e66 100644 --- a/usr/src/ucbcmd/plot/libplot/gigi/dot.c +++ b/usr/src/ucbcmd/plot/libplot/gigi/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/gigi/erase.c b/usr/src/ucbcmd/plot/libplot/gigi/erase.c index d50da21696..8bb79f5d24 100644 --- a/usr/src/ucbcmd/plot/libplot/gigi/erase.c +++ b/usr/src/ucbcmd/plot/libplot/gigi/erase.c @@ -1,24 +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 "gigi.h" -erase() +void +erase(void) { printf("S(E)"); } diff --git a/usr/src/ucbcmd/plot/libplot/gigi/label.c b/usr/src/ucbcmd/plot/libplot/gigi/label.c index e5f0a28a8d..cd1d86cd35 100644 --- a/usr/src/ucbcmd/plot/libplot/gigi/label.c +++ b/usr/src/ucbcmd/plot/libplot/gigi/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" #include "gigi.h" -label(s) -char *s; +void +label(char *s) { printf("T(S0 H2 D0 I0) \""); for(;*s!='\0';s++) { diff --git a/usr/src/ucbcmd/plot/libplot/gigi/line.c b/usr/src/ucbcmd/plot/libplot/gigi/line.c index 61aca3c623..8a8dbd3158 100644 --- a/usr/src/ucbcmd/plot/libplot/gigi/line.c +++ b/usr/src/ucbcmd/plot/libplot/gigi/line.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 "gigi.h" -line(x0,y0,x1,y1) -int x0,y0,x1,y1; +void +line(int x0, int y0, int x1, int y1) { if(xsc(x0)==currentx && ysc(y0)==currenty) cont(x1,y1); diff --git a/usr/src/ucbcmd/plot/libplot/gigi/linemod.c b/usr/src/ucbcmd/plot/libplot/gigi/linemod.c index dc7b011937..dc9e7b7987 100644 --- a/usr/src/ucbcmd/plot/libplot/gigi/linemod.c +++ b/usr/src/ucbcmd/plot/libplot/gigi/linemod.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 "gigi.h" -linemod( line ) -char *line; +void +linemod(char *line) { /* * Note that the bit patterns could be compacted using the diff --git a/usr/src/ucbcmd/plot/libplot/gigi/move.c b/usr/src/ucbcmd/plot/libplot/gigi/move.c index d575ff6aa0..c041491950 100644 --- a/usr/src/ucbcmd/plot/libplot/gigi/move.c +++ b/usr/src/ucbcmd/plot/libplot/gigi/move.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 "gigi.h" -move(xi,yi) -int xi,yi; +void +move(int xi, int yi) { currentx = xsc(xi); currenty = ysc(yi); diff --git a/usr/src/ucbcmd/plot/libplot/gigi/open.c b/usr/src/ucbcmd/plot/libplot/gigi/open.c index 7f23b8479e..8ad78739de 100644 --- a/usr/src/ucbcmd/plot/libplot/gigi/open.c +++ b/usr/src/ucbcmd/plot/libplot/gigi/open.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" /* * Displays plot files on a gigi "graphics" terminal. @@ -30,7 +28,8 @@ double lowy = 0.0; double scalex = 1.0; double scaley = 1.0; -openpl() +void +openpl(void) { void closepl(); diff --git a/usr/src/ucbcmd/plot/libplot/gigi/point.c b/usr/src/ucbcmd/plot/libplot/gigi/point.c index f9579ce205..cc42e1f932 100644 --- a/usr/src/ucbcmd/plot/libplot/gigi/point.c +++ b/usr/src/ucbcmd/plot/libplot/gigi/point.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 "gigi.h" -point(xi,yi) -int xi,yi; +void +point(int xi, int yi) { if(xsc(xi)!=currentx || ysc(yi)!=currenty) move(xi,yi); diff --git a/usr/src/ucbcmd/plot/libplot/gigi/space.c b/usr/src/ucbcmd/plot/libplot/gigi/space.c index ea3ed79b6b..d2c6e10a3a 100644 --- a/usr/src/ucbcmd/plot/libplot/gigi/space.c +++ b/usr/src/ucbcmd/plot/libplot/gigi/space.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 "gigi.h" -space(x0,y0,x1,y1) -int x0,y0,x1,y1; +void +space(int x0, int y0, int x1, int y1) { lowx = x0; lowy = y0; diff --git a/usr/src/ucbcmd/plot/libplot/hp2648/arc.c b/usr/src/ucbcmd/plot/libplot/hp2648/arc.c index 6380a8ae49..dccf2956b9 100644 --- a/usr/src/ucbcmd/plot/libplot/hp2648/arc.c +++ b/usr/src/ucbcmd/plot/libplot/hp2648/arc.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 "hp2648.h" -arc(xcent,ycent,xbeg,ybeg,xend,yend) -int xcent,ycent,xbeg,ybeg,xend,yend; +void +arc(int xcent, int ycent, int xbeg, int ybeg, int xend, int yend) { double costheta,sintheta,x,y,xn,r; double x1,y1,x2,y2; @@ -50,8 +48,8 @@ int xcent,ycent,xbeg,ybeg,xend,yend; } while( crosspflag == 0 || crossp >0); } -cross_product(x1,y1,x2,y2,x3,y3) -double x1,x2,x3,y1,y2,y3; +int +cross_product(double x1, double y1, double x2, double y2, double x3, double y3) { double z,a,b; a = (y3-y2)*(x2-x1); diff --git a/usr/src/ucbcmd/plot/libplot/hp2648/box.c b/usr/src/ucbcmd/plot/libplot/hp2648/box.c index ce721eefec..57b9a92f88 100644 --- a/usr/src/ucbcmd/plot/libplot/hp2648/box.c +++ b/usr/src/ucbcmd/plot/libplot/hp2648/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/hp2648/circle.c b/usr/src/ucbcmd/plot/libplot/hp2648/circle.c index 692e3302fc..6a56f8f262 100644 --- a/usr/src/ucbcmd/plot/libplot/hp2648/circle.c +++ b/usr/src/ucbcmd/plot/libplot/hp2648/circle.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 "hp2648.h" -circle (xc,yc,r) -int xc,yc,r; +void +circle(int xc, int yc, int r) { double costheta,sintheta,x,y,xn; int xi,yi; diff --git a/usr/src/ucbcmd/plot/libplot/hp2648/close.c b/usr/src/ucbcmd/plot/libplot/hp2648/close.c index f364793348..fb66e77017 100644 --- a/usr/src/ucbcmd/plot/libplot/hp2648/close.c +++ b/usr/src/ucbcmd/plot/libplot/hp2648/close.c @@ -1,24 +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 "hp2648.h" -closepl() +void +closepl(void) { putchar('Z'); fflush(stdout); diff --git a/usr/src/ucbcmd/plot/libplot/hp2648/cont.c b/usr/src/ucbcmd/plot/libplot/hp2648/cont.c index 84ca2d0000..a86471858a 100644 --- a/usr/src/ucbcmd/plot/libplot/hp2648/cont.c +++ b/usr/src/ucbcmd/plot/libplot/hp2648/cont.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 "hp2648.h" -cont(xi,yi) -int xi,yi; +void +cont(int xi, int yi) { char xb1,xb2,yb1,yb2; itoa(xsc(xi),&xb1,&xb2); diff --git a/usr/src/ucbcmd/plot/libplot/hp2648/dot.c b/usr/src/ucbcmd/plot/libplot/hp2648/dot.c index a9cf01dd0a..47521f8e66 100644 --- a/usr/src/ucbcmd/plot/libplot/hp2648/dot.c +++ b/usr/src/ucbcmd/plot/libplot/hp2648/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/hp2648/erase.c b/usr/src/ucbcmd/plot/libplot/hp2648/erase.c index 15aeb53aad..d8b071934b 100644 --- a/usr/src/ucbcmd/plot/libplot/hp2648/erase.c +++ b/usr/src/ucbcmd/plot/libplot/hp2648/erase.c @@ -1,24 +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 "hp2648.h" -erase() +void +erase(void) { buffready(8); putchar(ESC); diff --git a/usr/src/ucbcmd/plot/libplot/hp2648/label.c b/usr/src/ucbcmd/plot/libplot/hp2648/label.c index fec2cbd916..e09d7adcf2 100644 --- a/usr/src/ucbcmd/plot/libplot/hp2648/label.c +++ b/usr/src/ucbcmd/plot/libplot/hp2648/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" #include "hp2648.h" -label(s) -char *s; +void +label(char *s) { handshake(); putchar(ESC); diff --git a/usr/src/ucbcmd/plot/libplot/hp2648/line.c b/usr/src/ucbcmd/plot/libplot/hp2648/line.c index c9ae574e8f..8c3594d5dc 100644 --- a/usr/src/ucbcmd/plot/libplot/hp2648/line.c +++ b/usr/src/ucbcmd/plot/libplot/hp2648/line.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 "hp2648.h" -line(x0,y0,x1,y1) -int x0,y0,x1,y1; +void +line(int x0, int y0, int x1, int y1) { if(xsc(x0)==currentx && ysc(y0)==currenty) cont(x1,y1); diff --git a/usr/src/ucbcmd/plot/libplot/hp2648/linemod.c b/usr/src/ucbcmd/plot/libplot/hp2648/linemod.c index 8ab4fcd1d9..34a445cc08 100644 --- a/usr/src/ucbcmd/plot/libplot/hp2648/linemod.c +++ b/usr/src/ucbcmd/plot/libplot/hp2648/linemod.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 "hp2648.h" -linemod( line ) -char *line; +void +linemod(char *line) { putchar('Z'); handshake(); diff --git a/usr/src/ucbcmd/plot/libplot/hp2648/move.c b/usr/src/ucbcmd/plot/libplot/hp2648/move.c index 25864e3f00..77b6704150 100644 --- a/usr/src/ucbcmd/plot/libplot/hp2648/move.c +++ b/usr/src/ucbcmd/plot/libplot/hp2648/move.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 "hp2648.h" -move(xi,yi) -int xi,yi; +void +move(int xi, int yi) { char xb1,xb2,yb1,yb2; itoa(xsc(xi),&xb1,&xb2); diff --git a/usr/src/ucbcmd/plot/libplot/hp2648/open.c b/usr/src/ucbcmd/plot/libplot/hp2648/open.c index 51aa8a8c92..16c1b2f9a2 100644 --- a/usr/src/ucbcmd/plot/libplot/hp2648/open.c +++ b/usr/src/ucbcmd/plot/libplot/hp2648/open.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 <sgtty.h> #include "hp2648.h" @@ -30,7 +28,8 @@ float scalex; float scaley; struct sgttyb sarg; -openpl() +void +openpl(void) { if ( isatty(fileno( stdout )) ) { shakehands = TRUE; diff --git a/usr/src/ucbcmd/plot/libplot/hp2648/point.c b/usr/src/ucbcmd/plot/libplot/hp2648/point.c index 7cca9c5de5..86fd85bbe1 100644 --- a/usr/src/ucbcmd/plot/libplot/hp2648/point.c +++ b/usr/src/ucbcmd/plot/libplot/hp2648/point.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 "hp2648.h" -point(xi,yi) -int xi,yi; +void +point(int xi, int yi) { if(xsc(xi)!=currentx || ysc(yi)!=currenty) move(xi,yi); diff --git a/usr/src/ucbcmd/plot/libplot/hp2648/space.c b/usr/src/ucbcmd/plot/libplot/hp2648/space.c index 9524781d6a..85b143fd8a 100644 --- a/usr/src/ucbcmd/plot/libplot/hp2648/space.c +++ b/usr/src/ucbcmd/plot/libplot/hp2648/space.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 "hp2648.h" -space(x0,y0,x1,y1) -int x0,y0,x1,y1; +void +space(int x0, int y0, int x1, int y1) { lowx = x0; lowy = y0; diff --git a/usr/src/ucbcmd/plot/libplot/hp2648/subr.c b/usr/src/ucbcmd/plot/libplot/hp2648/subr.c index 3fecfb3922..49dd34a28e 100644 --- a/usr/src/ucbcmd/plot/libplot/hp2648/subr.c +++ b/usr/src/ucbcmd/plot/libplot/hp2648/subr.c @@ -1,25 +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 <sgtty.h> #include "hp2648.h" -handshake() +void +handshake(void) { int i; char ch; @@ -42,8 +41,8 @@ handshake() } } -buffready(n) -int n; +void +buffready(int n) { buffcount = buffcount + n; if(buffcount >= 80){ @@ -56,9 +55,8 @@ int n; } } -itoa(num,byte1,byte2) -int num; -char *byte1,*byte2; +void +itoa(int num, char *byte1, char *byte2) { *byte1 = (num & 037) | 040; *byte2 = ((num>>5) & 037) | 040; diff --git a/usr/src/ucbcmd/plot/libplot/hp7221/arc.c b/usr/src/ucbcmd/plot/libplot/hp7221/arc.c index 1ad9cb2c46..eca4bbce1f 100644 --- a/usr/src/ucbcmd/plot/libplot/hp7221/arc.c +++ b/usr/src/ucbcmd/plot/libplot/hp7221/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 "hp7221.h" @@ -34,8 +32,8 @@ #define side(x,y) (a*(x)+b*(y)+c > 0.0 ? 1 : -1) -arc(xcent,ycent,xbeg,ybeg,xend,yend) -int xcent,ycent,xbeg,ybeg,xend,yend; +void +arc(int xcent, int ycent, int xbeg, int ybeg, int xend, int yend) { double radius2, c2; double a,b,c; diff --git a/usr/src/ucbcmd/plot/libplot/hp7221/box.c b/usr/src/ucbcmd/plot/libplot/hp7221/box.c index ce721eefec..57b9a92f88 100644 --- a/usr/src/ucbcmd/plot/libplot/hp7221/box.c +++ b/usr/src/ucbcmd/plot/libplot/hp7221/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/hp7221/circle.c b/usr/src/ucbcmd/plot/libplot/hp7221/circle.c index 18630d286e..723e3ba807 100644 --- a/usr/src/ucbcmd/plot/libplot/hp7221/circle.c +++ b/usr/src/ucbcmd/plot/libplot/hp7221/circle.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 "hp7221.h" -circle (xc,yc,r) - int xc,yc,r; +void +circle(int xc, int yc, int r) { if( r < 1 ) { point( xc, yc ); diff --git a/usr/src/ucbcmd/plot/libplot/hp7221/close.c b/usr/src/ucbcmd/plot/libplot/hp7221/close.c index 4e7aa04437..8706e39590 100644 --- a/usr/src/ucbcmd/plot/libplot/hp7221/close.c +++ b/usr/src/ucbcmd/plot/libplot/hp7221/close.c @@ -1,25 +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 "hp7221.h" -closepl() +void +closepl(void) { /* receive interupts */ signal(SIGINT, SIG_IGN); diff --git a/usr/src/ucbcmd/plot/libplot/hp7221/cont.c b/usr/src/ucbcmd/plot/libplot/hp7221/cont.c index 240655ae9f..7ac65beb43 100644 --- a/usr/src/ucbcmd/plot/libplot/hp7221/cont.c +++ b/usr/src/ucbcmd/plot/libplot/hp7221/cont.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 "hp7221.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/hp7221/dot.c b/usr/src/ucbcmd/plot/libplot/hp7221/dot.c index a9cf01dd0a..47521f8e66 100644 --- a/usr/src/ucbcmd/plot/libplot/hp7221/dot.c +++ b/usr/src/ucbcmd/plot/libplot/hp7221/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/hp7221/erase.c b/usr/src/ucbcmd/plot/libplot/hp7221/erase.c index f255de3efd..bd3cd83a09 100644 --- a/usr/src/ucbcmd/plot/libplot/hp7221/erase.c +++ b/usr/src/ucbcmd/plot/libplot/hp7221/erase.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" -erase(){ +void +erase(void) +{ } diff --git a/usr/src/ucbcmd/plot/libplot/hp7221/label.c b/usr/src/ucbcmd/plot/libplot/hp7221/label.c index 19434255a7..487f620c2f 100644 --- a/usr/src/ucbcmd/plot/libplot/hp7221/label.c +++ b/usr/src/ucbcmd/plot/libplot/hp7221/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" #include "hp7221.h" -label(s) -char *s; +void +label(char *s) { printf("~'%s", s); putchar( ENDOFSTRING ); diff --git a/usr/src/ucbcmd/plot/libplot/hp7221/line.c b/usr/src/ucbcmd/plot/libplot/hp7221/line.c index 75f35abc4c..6251f0a110 100644 --- a/usr/src/ucbcmd/plot/libplot/hp7221/line.c +++ b/usr/src/ucbcmd/plot/libplot/hp7221/line.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 "hp7221.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/hp7221/linemod.c b/usr/src/ucbcmd/plot/libplot/hp7221/linemod.c index f950e8d4ef..04504fade8 100644 --- a/usr/src/ucbcmd/plot/libplot/hp7221/linemod.c +++ b/usr/src/ucbcmd/plot/libplot/hp7221/linemod.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 "hp7221.h" -linemod( line ) -char *line; +void +linemod(char *line) { /* * Note that the bit patterns could be compacted using the diff --git a/usr/src/ucbcmd/plot/libplot/hp7221/move.c b/usr/src/ucbcmd/plot/libplot/hp7221/move.c index 9cd6d103e3..e683009d77 100644 --- a/usr/src/ucbcmd/plot/libplot/hp7221/move.c +++ b/usr/src/ucbcmd/plot/libplot/hp7221/move.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 "hp7221.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/hp7221/open.c b/usr/src/ucbcmd/plot/libplot/hp7221/open.c index a64280367f..4a15edec0d 100644 --- a/usr/src/ucbcmd/plot/libplot/hp7221/open.c +++ b/usr/src/ucbcmd/plot/libplot/hp7221/open.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" /* * Displays plot files on an HP7221 plotter. @@ -33,7 +31,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/hp7221/point.c b/usr/src/ucbcmd/plot/libplot/hp7221/point.c index c5a4d12a15..3d02b6bb36 100644 --- a/usr/src/ucbcmd/plot/libplot/hp7221/point.c +++ b/usr/src/ucbcmd/plot/libplot/hp7221/point.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 "hp7221.h" -point(xi,yi) -int xi,yi; +void +point(int xi, int yi) { if(scaleX(xi)!=currentx || scaleY(yi)!=currenty) move(xi,yi); diff --git a/usr/src/ucbcmd/plot/libplot/hp7221/space.c b/usr/src/ucbcmd/plot/libplot/hp7221/space.c index 9792bbcc1b..0b7b0364b3 100644 --- a/usr/src/ucbcmd/plot/libplot/hp7221/space.c +++ b/usr/src/ucbcmd/plot/libplot/hp7221/space.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 "hp7221.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; diff --git a/usr/src/ucbcmd/plot/libplot/hp7221/subr.c b/usr/src/ucbcmd/plot/libplot/hp7221/subr.c index 74f3d407fb..ee71a44c7c 100644 --- a/usr/src/ucbcmd/plot/libplot/hp7221/subr.c +++ b/usr/src/ucbcmd/plot/libplot/hp7221/subr.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 "hp7221.h" -putMBP( x, y ) - int x, y; +void +putMBP(int x, int y) { int chr; @@ -50,8 +48,8 @@ putMBP( x, y ) return; } -putMBN( i ) - int i; +void +putMBN(int i) { int chr; @@ -71,8 +69,8 @@ putMBN( i ) return; } -putSBN( i ) - int i; +void +putSBN(int i) { i &= 077; if ( i < 32 ) { diff --git a/usr/src/ucbcmd/plot/libplot/imagen/arc.c b/usr/src/ucbcmd/plot/libplot/imagen/arc.c index 35e2d3f440..25bb2aebd2 100644 --- a/usr/src/ucbcmd/plot/libplot/imagen/arc.c +++ b/usr/src/ucbcmd/plot/libplot/imagen/arc.c @@ -1,26 +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; @@ -111,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); @@ -121,7 +128,10 @@ quad(x,y,xp,yp){ else if(y < yp)return(2); else return(4); } -abs(a){ + +int +abs(int a) +{ if(a < 0)return(-a); return(a); } diff --git a/usr/src/ucbcmd/plot/libplot/imagen/box.c b/usr/src/ucbcmd/plot/libplot/imagen/box.c index ce721eefec..57b9a92f88 100644 --- a/usr/src/ucbcmd/plot/libplot/imagen/box.c +++ b/usr/src/ucbcmd/plot/libplot/imagen/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/imagen/charset.c b/usr/src/ucbcmd/plot/libplot/imagen/charset.c index 5beefed61a..6e373812ae 100644 --- a/usr/src/ucbcmd/plot/libplot/imagen/charset.c +++ b/usr/src/ucbcmd/plot/libplot/imagen/charset.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" #include "imp.h" + char *imP_charset = "cour07"; int imPcsize = 12; diff --git a/usr/src/ucbcmd/plot/libplot/imagen/circle.c b/usr/src/ucbcmd/plot/libplot/imagen/circle.c index 45bbe8bdf5..12666d94da 100644 --- a/usr/src/ucbcmd/plot/libplot/imagen/circle.c +++ b/usr/src/ucbcmd/plot/libplot/imagen/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/imagen/close.c b/usr/src/ucbcmd/plot/libplot/imagen/close.c index d5c38e003b..4c8be4c16a 100644 --- a/usr/src/ucbcmd/plot/libplot/imagen/close.c +++ b/usr/src/ucbcmd/plot/libplot/imagen/close.c @@ -1,25 +1,25 @@ +/* + * 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 "imp.h" #include "imPcodes.h" -closepl(){ +void +closepl(void) +{ putch(imP_ENDPAGE); fflush(stdout); } diff --git a/usr/src/ucbcmd/plot/libplot/imagen/cont.c b/usr/src/ucbcmd/plot/libplot/imagen/cont.c index f1d0c783d1..d4d86c2e14 100644 --- a/usr/src/ucbcmd/plot/libplot/imagen/cont.c +++ b/usr/src/ucbcmd/plot/libplot/imagen/cont.c @@ -1,25 +1,25 @@ +/* + * 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> #include "imp.h" -cont(x,y){ +void +cont(int x, int y) +{ line(imPx, imPy, x, y); } diff --git a/usr/src/ucbcmd/plot/libplot/imagen/dot.c b/usr/src/ucbcmd/plot/libplot/imagen/dot.c index a9cf01dd0a..47521f8e66 100644 --- a/usr/src/ucbcmd/plot/libplot/imagen/dot.c +++ b/usr/src/ucbcmd/plot/libplot/imagen/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/imagen/erase.c b/usr/src/ucbcmd/plot/libplot/imagen/erase.c index 7e6403fe48..a5e57b43b0 100644 --- a/usr/src/ucbcmd/plot/libplot/imagen/erase.c +++ b/usr/src/ucbcmd/plot/libplot/imagen/erase.c @@ -1,24 +1,25 @@ +/* + * 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 "imPcodes.h" #include "imp.h" -erase(){ + +void +erase(void) +{ int i; putch(imP_ENDPAGE); imPx = imPy = 0; diff --git a/usr/src/ucbcmd/plot/libplot/imagen/label.c b/usr/src/ucbcmd/plot/libplot/imagen/label.c index a25b4711ae..373f60c3b4 100644 --- a/usr/src/ucbcmd/plot/libplot/imagen/label.c +++ b/usr/src/ucbcmd/plot/libplot/imagen/label.c @@ -1,28 +1,28 @@ +/* + * 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 "imPcodes.h" #include "imp.h" -extern imPcsize; -label(s) -char *s; + +extern int imPcsize; + +void +label(char *s) { - register i,c; + int i,c; putch(imP_SET_ABS_H); putwd((int)((imPx-obotx)*scalex+botx)-imPcsize/2); putch(imP_SET_ABS_V); diff --git a/usr/src/ucbcmd/plot/libplot/imagen/line.c b/usr/src/ucbcmd/plot/libplot/imagen/line.c index 0a90fa6a57..f6d6081298 100644 --- a/usr/src/ucbcmd/plot/libplot/imagen/line.c +++ b/usr/src/ucbcmd/plot/libplot/imagen/line.c @@ -1,30 +1,34 @@ +/* + * 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 "imp.h" #include "imPcodes.h" + float obotx = 0.; float oboty = 0.; float botx = 2.; float boty = 2.; float scalex = 1.; float scaley = 1.; -line(x0,y0,x1,y1) + +void putch(int); +void putwd(int); + +void +line(int x0, int y0, int x1, int y1) { putch(imP_CREATE_PATH); putwd(2); /* two coordinates follow */ @@ -37,11 +41,15 @@ line(x0,y0,x1,y1) imPx = x1; imPy = y1; } -putch(c) + +void +putch(int c) { putc(c, stdout); } -putwd(w) + +void +putwd(int w) { putch(w>>8); putch(w); diff --git a/usr/src/ucbcmd/plot/libplot/imagen/linemod.c b/usr/src/ucbcmd/plot/libplot/imagen/linemod.c index 9ba7b31ef9..7071d42fca 100644 --- a/usr/src/ucbcmd/plot/libplot/imagen/linemod.c +++ b/usr/src/ucbcmd/plot/libplot/imagen/linemod.c @@ -1,31 +1,29 @@ +/* + * 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 "imp.h" /* * Hack to set font. */ -linemod(s) -char *s; +void +linemod(char *s) { - register char *tit; - register char *nam; + char *tit; + char *nam; int siz = 0; nam = s; for(tit = "charset="; *tit; ) diff --git a/usr/src/ucbcmd/plot/libplot/imagen/move.c b/usr/src/ucbcmd/plot/libplot/imagen/move.c index ea954ebd18..14f6208efe 100644 --- a/usr/src/ucbcmd/plot/libplot/imagen/move.c +++ b/usr/src/ucbcmd/plot/libplot/imagen/move.c @@ -1,23 +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 "imp.h" -move(xi,yi){ + +void +move(int xi, int yi) +{ imPx = xi; imPy = yi; } diff --git a/usr/src/ucbcmd/plot/libplot/imagen/open.c b/usr/src/ucbcmd/plot/libplot/imagen/open.c index 4f51b9636c..4a944d1f12 100644 --- a/usr/src/ucbcmd/plot/libplot/imagen/open.c +++ b/usr/src/ucbcmd/plot/libplot/imagen/open.c @@ -1,25 +1,27 @@ +/* + * 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 "imPcodes.h" #include "imp.h" -openpl(){ +void setfont(char *, int); + +void +openpl(void) +{ putch(imP_SET_HV_SYSTEM); putch((3<<3)|5); @@ -37,7 +39,9 @@ openpl(){ putch(imP_SET_ABS_V); putwd(0); } -setfont(c, sz) char *c; int sz; + +void +setfont(char *c, int sz) { imPcsize = sz; putch(imP_CREATE_FAMILY_TABLE); diff --git a/usr/src/ucbcmd/plot/libplot/imagen/point.c b/usr/src/ucbcmd/plot/libplot/imagen/point.c index 21e7bde131..93f7313603 100644 --- a/usr/src/ucbcmd/plot/libplot/imagen/point.c +++ b/usr/src/ucbcmd/plot/libplot/imagen/point.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" -point(xi,yi){ +void +point(int xi, int yi) +{ line(xi,yi,xi,yi); } diff --git a/usr/src/ucbcmd/plot/libplot/imagen/scale.c b/usr/src/ucbcmd/plot/libplot/imagen/scale.c index 5311f551fe..c7f7011427 100644 --- a/usr/src/ucbcmd/plot/libplot/imagen/scale.c +++ b/usr/src/ucbcmd/plot/libplot/imagen/scale.c @@ -1,27 +1,25 @@ +/* + * 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 float scalex; extern float scaley; extern int scaleflag; -scale(i,x,y) -char i; -float x,y; + +void +scale(char i, float x, float y) { switch(i) { default: diff --git a/usr/src/ucbcmd/plot/libplot/imagen/space.c b/usr/src/ucbcmd/plot/libplot/imagen/space.c index cf600c906a..a82d988c35 100644 --- a/usr/src/ucbcmd/plot/libplot/imagen/space.c +++ b/usr/src/ucbcmd/plot/libplot/imagen/space.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" extern float botx; extern float boty; @@ -24,9 +22,11 @@ extern float scalex; extern float scaley; int PlotRes = DEFRES; - int scaleflag; -space(x0,y0,x1,y1){ + +void +space(int x0, int y0, int x1, int y1) +{ botx = 2.; boty = 2.; obotx = x0; diff --git a/usr/src/ucbcmd/plot/libplot/plot/arc.c b/usr/src/ucbcmd/plot/libplot/plot/arc.c index 91ef25c467..0dc832f491 100644 --- a/usr/src/ucbcmd/plot/libplot/plot/arc.c +++ b/usr/src/ucbcmd/plot/libplot/plot/arc.c @@ -1,23 +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 <stdio.h> -arc(xi,yi,x0,y0,x1,y1){ + +void +arc(int xi, int yi, int x0, int y0, int x1, int y1) +{ putc('a',stdout); putsi(xi); putsi(yi); diff --git a/usr/src/ucbcmd/plot/libplot/plot/box.c b/usr/src/ucbcmd/plot/libplot/plot/box.c index ce721eefec..57b9a92f88 100644 --- a/usr/src/ucbcmd/plot/libplot/plot/box.c +++ b/usr/src/ucbcmd/plot/libplot/plot/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/plot/circle.c b/usr/src/ucbcmd/plot/libplot/plot/circle.c index f32522b9c8..577c0d8a53 100644 --- a/usr/src/ucbcmd/plot/libplot/plot/circle.c +++ b/usr/src/ucbcmd/plot/libplot/plot/circle.c @@ -1,23 +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 <stdio.h> -circle(x,y,r){ + +void +circle(int x, int y, int r) +{ putc('c',stdout); putsi(x); putsi(y); diff --git a/usr/src/ucbcmd/plot/libplot/plot/close.c b/usr/src/ucbcmd/plot/libplot/plot/close.c index fd34f94b2b..1ad5004c25 100644 --- a/usr/src/ucbcmd/plot/libplot/plot/close.c +++ b/usr/src/ucbcmd/plot/libplot/plot/close.c @@ -1,25 +1,29 @@ +/* + * 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) +{ fflush(stdout); } -closepl(){ + +void +closepl(void) +{ fflush(stdout); } diff --git a/usr/src/ucbcmd/plot/libplot/plot/cont.c b/usr/src/ucbcmd/plot/libplot/plot/cont.c index 970e6d5803..02a8b46c1d 100644 --- a/usr/src/ucbcmd/plot/libplot/plot/cont.c +++ b/usr/src/ucbcmd/plot/libplot/plot/cont.c @@ -1,23 +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 <stdio.h> -cont(xi,yi){ + +void +cont(int xi, int yi) +{ putc('n',stdout); putsi(xi); putsi(yi); diff --git a/usr/src/ucbcmd/plot/libplot/plot/dot.c b/usr/src/ucbcmd/plot/libplot/plot/dot.c index 8fb1610972..5199bf1355 100644 --- a/usr/src/ucbcmd/plot/libplot/plot/dot.c +++ b/usr/src/ucbcmd/plot/libplot/plot/dot.c @@ -1,24 +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 <stdio.h> -dot(xi,yi,dx,n,pat) -int pat[]; + +void +dot(int xi, int yi, int dx, int n, int pat[]) { int i; putc('d',stdout); diff --git a/usr/src/ucbcmd/plot/libplot/plot/erase.c b/usr/src/ucbcmd/plot/libplot/plot/erase.c index 059fe9aae1..7c7b3fff56 100644 --- a/usr/src/ucbcmd/plot/libplot/plot/erase.c +++ b/usr/src/ucbcmd/plot/libplot/plot/erase.c @@ -1,22 +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 <stdio.h> -erase(){ + +void +erase(void) +{ putc('e',stdout); } diff --git a/usr/src/ucbcmd/plot/libplot/plot/label.c b/usr/src/ucbcmd/plot/libplot/plot/label.c index cd345bf74d..c7e5909057 100644 --- a/usr/src/ucbcmd/plot/libplot/plot/label.c +++ b/usr/src/ucbcmd/plot/libplot/plot/label.c @@ -1,24 +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 <stdio.h> -label(s) -char *s; + +void +label(char *s) { int i; putc('t',stdout); diff --git a/usr/src/ucbcmd/plot/libplot/plot/line.c b/usr/src/ucbcmd/plot/libplot/plot/line.c index 7885631956..5d0f1d4c9b 100644 --- a/usr/src/ucbcmd/plot/libplot/plot/line.c +++ b/usr/src/ucbcmd/plot/libplot/plot/line.c @@ -1,23 +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 <stdio.h> -line(x0,y0,x1,y1){ + +void +line(int x0, int y0, int x1, int y1) +{ putc('l',stdout); putsi(x0); putsi(y0); diff --git a/usr/src/ucbcmd/plot/libplot/plot/linmod.c b/usr/src/ucbcmd/plot/libplot/plot/linmod.c index e5906e292e..5dc22da8af 100644 --- a/usr/src/ucbcmd/plot/libplot/plot/linmod.c +++ b/usr/src/ucbcmd/plot/libplot/plot/linmod.c @@ -1,24 +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 <stdio.h> -linemod(s) -char *s; + +void +linemod(char *s) { int i; putc('f',stdout); diff --git a/usr/src/ucbcmd/plot/libplot/plot/move.c b/usr/src/ucbcmd/plot/libplot/plot/move.c index 06f3456f4d..4b124fead7 100644 --- a/usr/src/ucbcmd/plot/libplot/plot/move.c +++ b/usr/src/ucbcmd/plot/libplot/plot/move.c @@ -1,23 +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 <stdio.h> -move(xi,yi){ + +void +move(int xi,int yi) +{ putc('m',stdout); putsi(xi); putsi(yi); diff --git a/usr/src/ucbcmd/plot/libplot/plot/open.c b/usr/src/ucbcmd/plot/libplot/plot/open.c index fbfa68f015..c06291892b 100644 --- a/usr/src/ucbcmd/plot/libplot/plot/open.c +++ b/usr/src/ucbcmd/plot/libplot/plot/open.c @@ -1,22 +1,25 @@ +/* + * 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" - -openvt(){ +void +openvt(void) +{ } -openpl(){ + +void +openpl(void) +{ } diff --git a/usr/src/ucbcmd/plot/libplot/plot/point.c b/usr/src/ucbcmd/plot/libplot/plot/point.c index 2d515b7f25..05cb1b9f9c 100644 --- a/usr/src/ucbcmd/plot/libplot/plot/point.c +++ b/usr/src/ucbcmd/plot/libplot/plot/point.c @@ -1,23 +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 <stdio.h> -point(xi,yi){ + +void +point(int xi, int yi) +{ putc('p',stdout); putsi(xi); putsi(yi); diff --git a/usr/src/ucbcmd/plot/libplot/plot/putsi.c b/usr/src/ucbcmd/plot/libplot/plot/putsi.c index 04364105ab..611ede8679 100644 --- a/usr/src/ucbcmd/plot/libplot/plot/putsi.c +++ b/usr/src/ucbcmd/plot/libplot/plot/putsi.c @@ -1,23 +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 <stdio.h> -putsi(a){ + +void +putsi(int a) +{ putc((char)a,stdout); putc((char)(a>>8),stdout); } diff --git a/usr/src/ucbcmd/plot/libplot/plot/space.c b/usr/src/ucbcmd/plot/libplot/plot/space.c index ca4f8693e9..331b314871 100644 --- a/usr/src/ucbcmd/plot/libplot/plot/space.c +++ b/usr/src/ucbcmd/plot/libplot/plot/space.c @@ -1,23 +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 <stdio.h> -space(x0,y0,x1,y1){ + +void +space(int x0, int y0, int x1, int y1) +{ putc('s',stdout); putsi(x0); putsi(y0); diff --git a/usr/src/ucbcmd/plot/libplot/t300/arc.c b/usr/src/ucbcmd/plot/libplot/t300/arc.c index a4d5e23fde..ec22670932 100644 --- a/usr/src/ucbcmd/plot/libplot/t300/arc.c +++ b/usr/src/ucbcmd/plot/libplot/t300/arc.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" -arc(){ +void +arc(void) +{ } diff --git a/usr/src/ucbcmd/plot/libplot/t300/box.c b/usr/src/ucbcmd/plot/libplot/t300/box.c index ce721eefec..57b9a92f88 100644 --- a/usr/src/ucbcmd/plot/libplot/t300/box.c +++ b/usr/src/ucbcmd/plot/libplot/t300/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/t300/circle.c b/usr/src/ucbcmd/plot/libplot/t300/circle.c index bb9a06ff21..1baa52d770 100644 --- a/usr/src/ucbcmd/plot/libplot/t300/circle.c +++ b/usr/src/ucbcmd/plot/libplot/t300/circle.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" -circle(){ +void +circle(void) +{ } diff --git a/usr/src/ucbcmd/plot/libplot/t300/close.c b/usr/src/ucbcmd/plot/libplot/t300/close.c index cfbbcbf520..b4933198f8 100644 --- a/usr/src/ucbcmd/plot/libplot/t300/close.c +++ b/usr/src/ucbcmd/plot/libplot/t300/close.c @@ -1,26 +1,32 @@ +/* + * 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 closepl(void); + +void +closevt(void) +{ closepl(); } -closepl(){ + +void +closepl(void) +{ fflush(stdout); reset(); } diff --git a/usr/src/ucbcmd/plot/libplot/t300/dot.c b/usr/src/ucbcmd/plot/libplot/t300/dot.c index a9cf01dd0a..47521f8e66 100644 --- a/usr/src/ucbcmd/plot/libplot/t300/dot.c +++ b/usr/src/ucbcmd/plot/libplot/t300/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/t300/erase.c b/usr/src/ucbcmd/plot/libplot/t300/erase.c index 44fbab553e..7844a26b5b 100644 --- a/usr/src/ucbcmd/plot/libplot/t300/erase.c +++ b/usr/src/ucbcmd/plot/libplot/t300/erase.c @@ -1,23 +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 "con.h" -erase(){ + +void +erase(void) +{ int i; for(i=0; i<11*(VERTRESP/VERTRES); i++) spew(DOWN); diff --git a/usr/src/ucbcmd/plot/libplot/t300/label.c b/usr/src/ucbcmd/plot/libplot/t300/label.c index 4bd61984a6..93ac6c3d54 100644 --- a/usr/src/ucbcmd/plot/libplot/t300/label.c +++ b/usr/src/ucbcmd/plot/libplot/t300/label.c @@ -1,24 +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 "con.h" -label(s) -char *s; + +void +label(char *s) { int i,c; while((c = *s++) != '\0'){ diff --git a/usr/src/ucbcmd/plot/libplot/t300/line.c b/usr/src/ucbcmd/plot/libplot/t300/line.c index 9cca61858e..12ad44b695 100644 --- a/usr/src/ucbcmd/plot/libplot/t300/line.c +++ b/usr/src/ucbcmd/plot/libplot/t300/line.c @@ -1,31 +1,40 @@ +/* + * 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 "con.h" -line(x0,y0,x1,y1){ + +void iline(int, int, int, int); + +void +line(int x0, int y0, int x1, int y1) +{ iline(xconv(xsc(x0)),yconv(ysc(y0)),xconv(xsc(x1)),yconv(ysc(y1))); return; } -cont(x0,y0){ + +void +cont(int x0, int y0) +{ iline(xnow,ynow,xconv(xsc(x0)),yconv(ysc(y0))); return; } -iline(cx0,cy0,cx1,cy1){ + +void +iline(int cx0, int cy0, int cx1, int cy1) +{ int maxp,tt,j,np; char chx,chy; float xd,yd; diff --git a/usr/src/ucbcmd/plot/libplot/t300/linmod.c b/usr/src/ucbcmd/plot/libplot/t300/linmod.c index 46a98ef7ff..ee4f67b863 100644 --- a/usr/src/ucbcmd/plot/libplot/t300/linmod.c +++ b/usr/src/ucbcmd/plot/libplot/t300/linmod.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" -linemod(){ +void +linemod(void) +{ } diff --git a/usr/src/ucbcmd/plot/libplot/t300/move.c b/usr/src/ucbcmd/plot/libplot/t300/move.c index 0c67496c4c..498e46d57c 100644 --- a/usr/src/ucbcmd/plot/libplot/t300/move.c +++ b/usr/src/ucbcmd/plot/libplot/t300/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) +{ movep(xconv(xsc(xi)),yconv(ysc(yi))); return; } diff --git a/usr/src/ucbcmd/plot/libplot/t300/open.c b/usr/src/ucbcmd/plot/libplot/t300/open.c index ce326d4dea..f1ef292981 100644 --- a/usr/src/ucbcmd/plot/libplot/t300/open.c +++ b/usr/src/ucbcmd/plot/libplot/t300/open.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" -# #include <sgtty.h> + /* gsi plotting output routines */ # define DOWN 012 # define UP 013 @@ -43,7 +41,8 @@ int xscale, xoffset, yscale; float botx = 0., boty = 0., obotx = 0., oboty = 0.; float scalex = 1., scaley = 1.; -openpl () +void +openpl(void) { int reset(); xnow = ynow = 0; @@ -60,6 +59,8 @@ openpl () return; } -openvt(){ -openpl(); +void +openvt(void) +{ + openpl(); } diff --git a/usr/src/ucbcmd/plot/libplot/t300/point.c b/usr/src/ucbcmd/plot/libplot/t300/point.c index f0d9baab1b..29bf980347 100644 --- a/usr/src/ucbcmd/plot/libplot/t300/point.c +++ b/usr/src/ucbcmd/plot/libplot/t300/point.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" -point(xi,yi){ +void +point(int xi, int yi) +{ move(xi,yi); label("."); return; diff --git a/usr/src/ucbcmd/plot/libplot/t300/space.c b/usr/src/ucbcmd/plot/libplot/t300/space.c index d8df66c6ce..b6febb8d17 100644 --- a/usr/src/ucbcmd/plot/libplot/t300/space.c +++ b/usr/src/ucbcmd/plot/libplot/t300/space.c @@ -1,25 +1,27 @@ +/* + * 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 "con.h" + float deltx = 4095.; float delty = 4095.; -space(x0,y0,x1,y1){ + +void +space(int x0, int y0, int x1, int y1) +{ botx = -2047.; boty = -2047.; obotx = x0; diff --git a/usr/src/ucbcmd/plot/libplot/t300/subr.c b/usr/src/ucbcmd/plot/libplot/t300/subr.c index 27b5591d8b..ab66e11146 100644 --- a/usr/src/ucbcmd/plot/libplot/t300/subr.c +++ b/usr/src/ucbcmd/plot/libplot/t300/subr.c @@ -1,29 +1,32 @@ +/* + * 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> #include "con.h" -abval(q) + +void spew(int); + +int +abval(int q) { return (q>=0 ? q : -q); } -xconv (xp) +int +xconv(int xp) { /* x position input is -2047 to +2047, output must be 0 to PAGSIZ*HORZRES */ xp += 2048; @@ -31,20 +34,23 @@ xconv (xp) return (xoffset + xp /xscale); } -yconv (yp) +int +yconv(int yp) { /* see description of xconv */ yp += 2048; return (yp / yscale); } -inplot() +void +inplot(void) { stty(OUTF, &PTTY); spew (ACK); } -outplot() +void +outplot(void) { spew(ESC); spew(ACK); @@ -52,24 +58,28 @@ outplot() stty(OUTF, &ITTY); } -spew(ch) +void +spew(int ch) { if(ch == UP)putc(ESC,stdout); putc(ch, stdout); } -tobotleft () +void +tobotleft(void) { move(-2048,-2048); } -reset() + +void +reset(void) { outplot(); exit(0); } float -dist2 (x1, y1, x2, y2) +dist2(int x1, int y1, int x2, int y2) { float t,v; t = x2-x1; @@ -77,15 +87,17 @@ dist2 (x1, y1, x2, y2) return (t*t+v*v); } -swap (pa, pb) -int *pa, *pb; +void +swap(int *pa, int *pb) { int t; t = *pa; *pa = *pb; *pb = t; } -movep (xg, yg) + +void +movep(int xg, int yg) { int i,ch; if((xg == xnow) && (yg == ynow))return; @@ -118,12 +130,17 @@ movep (xg, yg) xnow = xg; ynow = yg; } -xsc(xi){ +int +xsc(int xi) +{ int xa; xa = (xi - obotx) * scalex + botx; return(xa); } -ysc(yi){ + +int +ysc(int yi) +{ int ya; ya = (yi - oboty) *scaley +boty; return(ya); diff --git a/usr/src/ucbcmd/plot/libplot/t300s/arc.c b/usr/src/ucbcmd/plot/libplot/t300s/arc.c index a4d5e23fde..ec22670932 100644 --- a/usr/src/ucbcmd/plot/libplot/t300s/arc.c +++ b/usr/src/ucbcmd/plot/libplot/t300s/arc.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" -arc(){ +void +arc(void) +{ } diff --git a/usr/src/ucbcmd/plot/libplot/t300s/box.c b/usr/src/ucbcmd/plot/libplot/t300s/box.c index fe42272269..57b9a92f88 100644 --- a/usr/src/ucbcmd/plot/libplot/t300s/box.c +++ b/usr/src/ucbcmd/plot/libplot/t300s/box.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" -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/t300s/circle.c b/usr/src/ucbcmd/plot/libplot/t300s/circle.c index bb9a06ff21..1baa52d770 100644 --- a/usr/src/ucbcmd/plot/libplot/t300s/circle.c +++ b/usr/src/ucbcmd/plot/libplot/t300s/circle.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" -circle(){ +void +circle(void) +{ } diff --git a/usr/src/ucbcmd/plot/libplot/t300s/close.c b/usr/src/ucbcmd/plot/libplot/t300s/close.c index cfbbcbf520..b4933198f8 100644 --- a/usr/src/ucbcmd/plot/libplot/t300s/close.c +++ b/usr/src/ucbcmd/plot/libplot/t300s/close.c @@ -1,26 +1,32 @@ +/* + * 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 closepl(void); + +void +closevt(void) +{ closepl(); } -closepl(){ + +void +closepl(void) +{ fflush(stdout); reset(); } diff --git a/usr/src/ucbcmd/plot/libplot/t300s/dot.c b/usr/src/ucbcmd/plot/libplot/t300s/dot.c index a9cf01dd0a..47521f8e66 100644 --- a/usr/src/ucbcmd/plot/libplot/t300s/dot.c +++ b/usr/src/ucbcmd/plot/libplot/t300s/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/t300s/erase.c b/usr/src/ucbcmd/plot/libplot/t300s/erase.c index 44fbab553e..7844a26b5b 100644 --- a/usr/src/ucbcmd/plot/libplot/t300s/erase.c +++ b/usr/src/ucbcmd/plot/libplot/t300s/erase.c @@ -1,23 +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 "con.h" -erase(){ + +void +erase(void) +{ int i; for(i=0; i<11*(VERTRESP/VERTRES); i++) spew(DOWN); diff --git a/usr/src/ucbcmd/plot/libplot/t300s/label.c b/usr/src/ucbcmd/plot/libplot/t300s/label.c index 325e4c06dd..60904ad1a2 100644 --- a/usr/src/ucbcmd/plot/libplot/t300s/label.c +++ b/usr/src/ucbcmd/plot/libplot/t300s/label.c @@ -1,24 +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 "con.h" -label(s) -char *s; + +void +label(char *s) { int i,c; while((c = *s++) != '\0'){ diff --git a/usr/src/ucbcmd/plot/libplot/t300s/line.c b/usr/src/ucbcmd/plot/libplot/t300s/line.c index 5a6179c3aa..308b696878 100644 --- a/usr/src/ucbcmd/plot/libplot/t300s/line.c +++ b/usr/src/ucbcmd/plot/libplot/t300s/line.c @@ -1,31 +1,40 @@ +/* + * 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 "con.h" -line(x0,y0,x1,y1){ + +void iline(int, int, int, int); + +void +line(int x0, int y0, int x1, int y1) +{ iline(xconv(xsc(x0)),yconv(ysc(y0)),xconv(xsc(x1)),yconv(ysc(y1))); return; } -cont(x0,y0){ + +void +cont(int x0, int y0) +{ iline(xnow,ynow,xconv(xsc(x0)),yconv(ysc(y0))); return; } -iline(cx0,cy0,cx1,cy1){ + +void +iline(int cx0, int cy0, int cx1, int cy1) +{ int maxp,tt,j,np; char chx,chy,command; float xd,yd; diff --git a/usr/src/ucbcmd/plot/libplot/t300s/linmod.c b/usr/src/ucbcmd/plot/libplot/t300s/linmod.c index 46a98ef7ff..ee4f67b863 100644 --- a/usr/src/ucbcmd/plot/libplot/t300s/linmod.c +++ b/usr/src/ucbcmd/plot/libplot/t300s/linmod.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" -linemod(){ +void +linemod(void) +{ } diff --git a/usr/src/ucbcmd/plot/libplot/t300s/move.c b/usr/src/ucbcmd/plot/libplot/t300s/move.c index 0c67496c4c..498e46d57c 100644 --- a/usr/src/ucbcmd/plot/libplot/t300s/move.c +++ b/usr/src/ucbcmd/plot/libplot/t300s/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) +{ movep(xconv(xsc(xi)),yconv(ysc(yi))); return; } diff --git a/usr/src/ucbcmd/plot/libplot/t300s/open.c b/usr/src/ucbcmd/plot/libplot/t300s/open.c index ce326d4dea..f1ef292981 100644 --- a/usr/src/ucbcmd/plot/libplot/t300s/open.c +++ b/usr/src/ucbcmd/plot/libplot/t300s/open.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" -# #include <sgtty.h> + /* gsi plotting output routines */ # define DOWN 012 # define UP 013 @@ -43,7 +41,8 @@ int xscale, xoffset, yscale; float botx = 0., boty = 0., obotx = 0., oboty = 0.; float scalex = 1., scaley = 1.; -openpl () +void +openpl(void) { int reset(); xnow = ynow = 0; @@ -60,6 +59,8 @@ openpl () return; } -openvt(){ -openpl(); +void +openvt(void) +{ + openpl(); } diff --git a/usr/src/ucbcmd/plot/libplot/t300s/point.c b/usr/src/ucbcmd/plot/libplot/t300s/point.c index 65188fd162..f3d3752cd0 100644 --- a/usr/src/ucbcmd/plot/libplot/t300s/point.c +++ b/usr/src/ucbcmd/plot/libplot/t300s/point.c @@ -1,23 +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 "con.h" -point(xi,yi){ + +void +point(int xi, int yi) +{ move(xi,yi); label("."); return; diff --git a/usr/src/ucbcmd/plot/libplot/t300s/space.c b/usr/src/ucbcmd/plot/libplot/t300s/space.c index 78c1836578..586b41aef3 100644 --- a/usr/src/ucbcmd/plot/libplot/t300s/space.c +++ b/usr/src/ucbcmd/plot/libplot/t300s/space.c @@ -1,24 +1,27 @@ +/* + * 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 "con.h" -# include "con.h" float deltx = 4095.; float delty = 4095.; -space(x0,y0,x1,y1){ + +void +space(int x0, int y0, int x1, int y1) +{ botx = -2047.; boty = -2047.; obotx = x0; diff --git a/usr/src/ucbcmd/plot/libplot/t300s/subr.c b/usr/src/ucbcmd/plot/libplot/t300s/subr.c index 2d54112f1c..bb191c4043 100644 --- a/usr/src/ucbcmd/plot/libplot/t300s/subr.c +++ b/usr/src/ucbcmd/plot/libplot/t300s/subr.c @@ -1,29 +1,41 @@ +/* + * 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> #include "con.h" -abval(q) + +#define DOUBLE 010 +#define ADDR 0100 +#define COM 060 +#define MAXX 070 +#define MAXY 07 +#define SPACES 7 + +extern int xnow, ynow; + +void spew(int); + +int +abval(int q) { return (q>=0 ? q : -q); } -xconv (xp) +int +xconv(int xp) { /* x position input is -2047 to +2047, output must be 0 to PAGSIZ*HORZRES */ xp += 2048; @@ -31,21 +43,24 @@ xconv (xp) return (xoffset + xp /xscale); } -yconv (yp) +int +yconv(int yp) { /* see description of xconv */ yp += 2048; return (yp / yscale); } -inplot() +void +inplot(void) { stty(OUTF, &PTTY); spew(ESC); spew (INPLOT); } -outplot() +void +outplot(void) { spew(ESC); spew(ACK); @@ -55,23 +70,27 @@ outplot() stty (OUTF, &ITTY); } -spew(ch) +void +spew(int ch) { putc(ch, stdout); } -tobotleft () +void +tobotleft(void) { move(-2048,-2048); } -reset() + +void +reset(void) { outplot(); exit(0); } float -dist2 (x1, y1, x2, y2) +dist2(int x1, int y1, int x2, int y2) { float t,v; t = x2-x1; @@ -79,8 +98,8 @@ dist2 (x1, y1, x2, y2) return (t*t+v*v); } -swap (pa, pb) -int *pa, *pb; +void +swap(int *pa, int *pb) { int t; t = *pa; @@ -88,14 +107,9 @@ int *pa, *pb; *pb = t; } -#define DOUBLE 010 -#define ADDR 0100 -#define COM 060 -#define MAXX 070 -#define MAXY 07 -extern xnow,ynow; -#define SPACES 7 -movep(ix,iy){ +void +movep(int ix, int iy) +{ int dx,dy,remx,remy,pts,i; int xd,yd; int addr,command; @@ -162,12 +176,18 @@ movep(ix,iy){ outplot(); return; } -xsc(xi){ + +int +xsc(int xi) +{ int xa; xa = (xi - obotx) * scalex + botx; return(xa); } -ysc(yi){ + +int +ysc(int yi) +{ int ya; ya = (yi - oboty) *scaley +boty; return(ya); 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); } diff --git a/usr/src/ucbcmd/plot/libplot/t4014/arc.c b/usr/src/ucbcmd/plot/libplot/t4014/arc.c index a5ceb326d7..2f7dd26d47 100644 --- a/usr/src/ucbcmd/plot/libplot/t4014/arc.c +++ b/usr/src/ucbcmd/plot/libplot/t4014/arc.c @@ -19,22 +19,27 @@ * * CDDL HEADER END */ +/* + * 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) 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; @@ -125,7 +130,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); @@ -135,7 +143,10 @@ quad(x,y,xp,yp){ else if(y < yp)return(2); else return(4); } -abs(a){ + +int +abs(int a) +{ if(a < 0)return(-a); return(a); } diff --git a/usr/src/ucbcmd/plot/libplot/t4014/box.c b/usr/src/ucbcmd/plot/libplot/t4014/box.c index 190476f237..e6ec1533c2 100644 --- a/usr/src/ucbcmd/plot/libplot/t4014/box.c +++ b/usr/src/ucbcmd/plot/libplot/t4014/box.c @@ -19,18 +19,18 @@ * * CDDL HEADER END */ +/* + * 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 */ +#pragma ident "%Z%%M% %I% %E% SMI" -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - -/* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ - -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/t4014/circle.c b/usr/src/ucbcmd/plot/libplot/t4014/circle.c index 78e902fc43..fb4c286bce 100644 --- a/usr/src/ucbcmd/plot/libplot/t4014/circle.c +++ b/usr/src/ucbcmd/plot/libplot/t4014/circle.c @@ -19,17 +19,18 @@ * * CDDL HEADER END */ +/* + * 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 */ +#pragma ident "%Z%%M% %I% %E% SMI" -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - -/* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ - -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/t4014/close.c b/usr/src/ucbcmd/plot/libplot/t4014/close.c index 4ae674b853..0b32917310 100644 --- a/usr/src/ucbcmd/plot/libplot/t4014/close.c +++ b/usr/src/ucbcmd/plot/libplot/t4014/close.c @@ -19,23 +19,28 @@ * * CDDL HEADER END */ +/* + * 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) 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/t4014/dot.c b/usr/src/ucbcmd/plot/libplot/t4014/dot.c index 06dde59777..a3ecc9bd43 100644 --- a/usr/src/ucbcmd/plot/libplot/t4014/dot.c +++ b/usr/src/ucbcmd/plot/libplot/t4014/dot.c @@ -19,16 +19,17 @@ * * CDDL HEADER END */ +/* + * 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 */ +#pragma ident "%Z%%M% %I% %E% SMI" -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - -/* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ - -dot(){ +void +dot(void) +{ } diff --git a/usr/src/ucbcmd/plot/libplot/t4014/erase.c b/usr/src/ucbcmd/plot/libplot/t4014/erase.c index dabf6915e6..1a540833cd 100644 --- a/usr/src/ucbcmd/plot/libplot/t4014/erase.c +++ b/usr/src/ucbcmd/plot/libplot/t4014/erase.c @@ -19,22 +19,24 @@ * * CDDL HEADER END */ +/* + * 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) 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; extern int oextra; -erase(){ + +void +erase(void) +{ int i; putch(033); putch(014); diff --git a/usr/src/ucbcmd/plot/libplot/t4014/label.c b/usr/src/ucbcmd/plot/libplot/t4014/label.c index 5534beb542..baf1efc8ea 100644 --- a/usr/src/ucbcmd/plot/libplot/t4014/label.c +++ b/usr/src/ucbcmd/plot/libplot/t4014/label.c @@ -19,16 +19,15 @@ * * CDDL HEADER END */ +/* + * 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) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ +#pragma ident "%Z%%M% %I% %E% SMI" #define N 0104 #define E 0101 @@ -36,6 +35,7 @@ #define S 0110 #define W 0102 #define SW 0112 + /* arrange by incremental plotting that an initial * character such as +, X, *, etc will fall * right on the point, and undo it so that further @@ -47,10 +47,11 @@ char lbl_mv[] = { char lbl_umv[] = { 036,040,N,N,N,N,N,N,NE,NE,NE,NE,NE,NE,NE,NE,NE,NE,037,0 }; -label(s) -char *s; + +void +label(char *s) { - register i,c; + int i, c; for(i=0; c=lbl_mv[i]; i++) putch(c); for(i=0; c=s[i]; i++) diff --git a/usr/src/ucbcmd/plot/libplot/t4014/line.c b/usr/src/ucbcmd/plot/libplot/t4014/line.c index eed81a69b3..3690e9943d 100644 --- a/usr/src/ucbcmd/plot/libplot/t4014/line.c +++ b/usr/src/ucbcmd/plot/libplot/t4014/line.c @@ -19,18 +19,19 @@ * * CDDL HEADER END */ +/* + * 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 */ +#pragma ident "%Z%%M% %I% %E% SMI" -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - -/* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ - -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/t4014/linemod.c b/usr/src/ucbcmd/plot/libplot/t4014/linemod.c index c1b0fcca89..04ce1f8bed 100644 --- a/usr/src/ucbcmd/plot/libplot/t4014/linemod.c +++ b/usr/src/ucbcmd/plot/libplot/t4014/linemod.c @@ -19,19 +19,18 @@ * * CDDL HEADER END */ +/* + * 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 */ +#pragma ident "%Z%%M% %I% %E% SMI" -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - -/* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ - -linemod(s) -char *s; +void +linemod(char *s) { char c; putch(033); diff --git a/usr/src/ucbcmd/plot/libplot/t4014/move.c b/usr/src/ucbcmd/plot/libplot/t4014/move.c index a9213ff592..39766abf2e 100644 --- a/usr/src/ucbcmd/plot/libplot/t4014/move.c +++ b/usr/src/ucbcmd/plot/libplot/t4014/move.c @@ -19,18 +19,19 @@ * * CDDL HEADER END */ +/* + * 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 */ +#pragma ident "%Z%%M% %I% %E% SMI" -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - -/* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ - -move(xi,yi){ +void +move(int xi, int yi) +{ putch(035); cont(xi,yi); } diff --git a/usr/src/ucbcmd/plot/libplot/t4014/open.c b/usr/src/ucbcmd/plot/libplot/t4014/open.c index 3e8d5db7e9..bf989e7644 100644 --- a/usr/src/ucbcmd/plot/libplot/t4014/open.c +++ b/usr/src/ucbcmd/plot/libplot/t4014/open.c @@ -19,19 +19,22 @@ * * CDDL HEADER END */ +/* + * 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 */ +#pragma ident "%Z%%M% %I% %E% SMI" -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - -/* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ - -openvt () +void +openvt(void) { } -openpl(){ + +void +openpl(void) +{ } diff --git a/usr/src/ucbcmd/plot/libplot/t4014/point.c b/usr/src/ucbcmd/plot/libplot/t4014/point.c index fd0d3df99e..a2bffdfbeb 100644 --- a/usr/src/ucbcmd/plot/libplot/t4014/point.c +++ b/usr/src/ucbcmd/plot/libplot/t4014/point.c @@ -19,18 +19,19 @@ * * CDDL HEADER END */ +/* + * 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 */ +#pragma ident "%Z%%M% %I% %E% SMI" -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - -/* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ - -point(xi,yi){ +void +point(int xi, int yi) +{ move(xi,yi); cont(xi,yi); } diff --git a/usr/src/ucbcmd/plot/libplot/t4014/space.c b/usr/src/ucbcmd/plot/libplot/t4014/space.c index 812e3e5708..732920fb5b 100644 --- a/usr/src/ucbcmd/plot/libplot/t4014/space.c +++ b/usr/src/ucbcmd/plot/libplot/t4014/space.c @@ -19,16 +19,15 @@ * * CDDL HEADER END */ +/* + * 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) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ +#pragma ident "%Z%%M% %I% %E% SMI" extern float botx; extern float boty; @@ -37,7 +36,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/t4014/subr.c b/usr/src/ucbcmd/plot/libplot/t4014/subr.c index d5782701f4..0965934b57 100644 --- a/usr/src/ucbcmd/plot/libplot/t4014/subr.c +++ b/usr/src/ucbcmd/plot/libplot/t4014/subr.c @@ -19,18 +19,18 @@ * * CDDL HEADER END */ +/* + * 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) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ +#pragma ident "%Z%%M% %I% %E% SMI" #include <stdio.h> + float obotx = 0.; float oboty = 0.; float botx = 0.; @@ -43,7 +43,12 @@ int oloy = -1; int ohiy = -1; int ohix = -1; int oextra = -1; -cont(x,y){ + +void putch(int); + +void +cont(int x, int y) +{ int hix,hiy,lox,loy,extra; int n; x = (x-obotx)*scalex + botx; @@ -85,6 +90,8 @@ cont(x,y){ putch(0); } -putch(c){ +void +putch(int c) +{ putc(c,stdout); } diff --git a/usr/src/ucbcmd/plot/libplot/t450/arc.c b/usr/src/ucbcmd/plot/libplot/t450/arc.c index 8be09951b5..408fd8f923 100644 --- a/usr/src/ucbcmd/plot/libplot/t450/arc.c +++ b/usr/src/ucbcmd/plot/libplot/t450/arc.c @@ -19,16 +19,17 @@ * * CDDL HEADER END */ +/* + * 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 */ +#pragma ident "%Z%%M% %I% %E% SMI" -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - -/* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ - -arc(){ +void +arc(void) +{ } diff --git a/usr/src/ucbcmd/plot/libplot/t450/box.c b/usr/src/ucbcmd/plot/libplot/t450/box.c index 190476f237..e6ec1533c2 100644 --- a/usr/src/ucbcmd/plot/libplot/t450/box.c +++ b/usr/src/ucbcmd/plot/libplot/t450/box.c @@ -19,18 +19,18 @@ * * CDDL HEADER END */ +/* + * 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 */ +#pragma ident "%Z%%M% %I% %E% SMI" -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - -/* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ - -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/t450/circle.c b/usr/src/ucbcmd/plot/libplot/t450/circle.c index d29326de64..f6a0a988fd 100644 --- a/usr/src/ucbcmd/plot/libplot/t450/circle.c +++ b/usr/src/ucbcmd/plot/libplot/t450/circle.c @@ -19,16 +19,17 @@ * * CDDL HEADER END */ +/* + * 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 */ +#pragma ident "%Z%%M% %I% %E% SMI" -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - -/* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ - -circle(){ +void +circle(void) +{ } diff --git a/usr/src/ucbcmd/plot/libplot/t450/close.c b/usr/src/ucbcmd/plot/libplot/t450/close.c index ef9737b830..b67558c87c 100644 --- a/usr/src/ucbcmd/plot/libplot/t450/close.c +++ b/usr/src/ucbcmd/plot/libplot/t450/close.c @@ -19,22 +19,29 @@ * * CDDL HEADER END */ +/* + * 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 */ +#pragma ident "%Z%%M% %I% %E% SMI" -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ +#include <stdio.h> -/* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ +void closepl(void); -#include <stdio.h> -closevt(){ +void +closevt(void) +{ closepl(); } -closepl(){ + +void +closepl(void) +{ fflush(stdout); reset(); } diff --git a/usr/src/ucbcmd/plot/libplot/t450/dot.c b/usr/src/ucbcmd/plot/libplot/t450/dot.c index 06dde59777..a3ecc9bd43 100644 --- a/usr/src/ucbcmd/plot/libplot/t450/dot.c +++ b/usr/src/ucbcmd/plot/libplot/t450/dot.c @@ -19,16 +19,17 @@ * * CDDL HEADER END */ +/* + * 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 */ +#pragma ident "%Z%%M% %I% %E% SMI" -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - -/* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ - -dot(){ +void +dot(void) +{ } diff --git a/usr/src/ucbcmd/plot/libplot/t450/erase.c b/usr/src/ucbcmd/plot/libplot/t450/erase.c index 969a1d5f63..961ec87d08 100644 --- a/usr/src/ucbcmd/plot/libplot/t450/erase.c +++ b/usr/src/ucbcmd/plot/libplot/t450/erase.c @@ -19,19 +19,21 @@ * * CDDL HEADER END */ +/* + * 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) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ +#pragma ident "%Z%%M% %I% %E% SMI" #include "con.h" -erase(){ + +void +erase(void) +{ int i; for(i=0; i<11*(VERTRESP/VERTRES); i++) spew(DOWN); diff --git a/usr/src/ucbcmd/plot/libplot/t450/label.c b/usr/src/ucbcmd/plot/libplot/t450/label.c index 0cc08977cc..abef1ac459 100644 --- a/usr/src/ucbcmd/plot/libplot/t450/label.c +++ b/usr/src/ucbcmd/plot/libplot/t450/label.c @@ -19,20 +19,20 @@ * * CDDL HEADER END */ +/* + * 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) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ +#pragma ident "%Z%%M% %I% %E% SMI" #include "con.h" -label(s) -char *s; + +void +label(char *s) { int i,c; while((c = *s++) != '\0'){ diff --git a/usr/src/ucbcmd/plot/libplot/t450/line.c b/usr/src/ucbcmd/plot/libplot/t450/line.c index 226fee3148..3aa35fd288 100644 --- a/usr/src/ucbcmd/plot/libplot/t450/line.c +++ b/usr/src/ucbcmd/plot/libplot/t450/line.c @@ -19,27 +19,37 @@ * * CDDL HEADER END */ +/* + * 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 */ +#pragma ident "%Z%%M% %I% %E% SMI" -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ +#include "con.h" -/* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ +void iline(int, int, int, int); -#include "con.h" -line(x0,y0,x1,y1){ +void +line(int x0, int y0, int x1, int y1) +{ iline(xconv(xsc(x0)),yconv(ysc(y0)),xconv(xsc(x1)),yconv(ysc(y1))); return; } -cont(x0,y0){ + +void +cont(int x0, int y0) +{ iline(xnow,ynow,xconv(xsc(x0)),yconv(ysc(y0))); return; } -iline(cx0,cy0,cx1,cy1){ + +void +iline(int cx0, int cy0, int cx1, int cy1) +{ int maxp,tt,j,np; char chx,chy; float xd,yd; diff --git a/usr/src/ucbcmd/plot/libplot/t450/linmod.c b/usr/src/ucbcmd/plot/libplot/t450/linmod.c index b1731bdbe9..897c62ea19 100644 --- a/usr/src/ucbcmd/plot/libplot/t450/linmod.c +++ b/usr/src/ucbcmd/plot/libplot/t450/linmod.c @@ -19,16 +19,17 @@ * * CDDL HEADER END */ +/* + * 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 */ +#pragma ident "%Z%%M% %I% %E% SMI" -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - -/* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ - -linemod(){ +void +linemod(void) +{ } diff --git a/usr/src/ucbcmd/plot/libplot/t450/move.c b/usr/src/ucbcmd/plot/libplot/t450/move.c index a0b158bf8d..74983e7ba4 100644 --- a/usr/src/ucbcmd/plot/libplot/t450/move.c +++ b/usr/src/ucbcmd/plot/libplot/t450/move.c @@ -19,18 +19,19 @@ * * CDDL HEADER END */ +/* + * 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 */ +#pragma ident "%Z%%M% %I% %E% SMI" -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - -/* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ - -move(xi,yi){ +void +move(int xi, int yi) +{ movep(xconv(xsc(xi)),yconv(ysc(yi))); return; } diff --git a/usr/src/ucbcmd/plot/libplot/t450/open.c b/usr/src/ucbcmd/plot/libplot/t450/open.c index 6171d87d47..1e9654329e 100644 --- a/usr/src/ucbcmd/plot/libplot/t450/open.c +++ b/usr/src/ucbcmd/plot/libplot/t450/open.c @@ -19,34 +19,33 @@ * * CDDL HEADER END */ +/* + * 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 */ +#pragma ident "%Z%%M% %I% %E% SMI" -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - -/* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ - -# #include <sgtty.h> + /* gsi plotting output routines */ -# define DOWN 012 -# define UP 013 -# define LEFT 010 -# define RIGHT 040 -# define BEL 007 -# define ACK 006 +#define DOWN 012 +#define UP 013 +#define LEFT 010 +#define RIGHT 040 +#define BEL 007 +#define ACK 006 #define PLOTIN 063 #define PLOTOUT 064 -# define CR 015 -# define FF 014 -# define VERTRESP 48 -# define HORZRESP 60. -# define HORZRES 6. -# define VERTRES 8. +#define CR 015 +#define FF 014 +#define VERTRESP 48 +#define HORZRESP 60. +#define HORZRES 6. +#define VERTRES 8. /* down is line feed, up is reverse oyne feed, left is bwckspace, right is space. 48 points per inch vertically, 60 horizontally */ @@ -59,7 +58,8 @@ int xscale, xoffset, yscale; float botx = 0., boty = 0., obotx = 0., oboty = 0.; float scalex = 1., scaley = 1.; -openpl () +void +openpl(void) { int reset(); xnow = ynow = 0; @@ -77,6 +77,8 @@ openpl () return; } -openvt(){ -openpl(); +void +openvt(void) +{ + openpl(); } diff --git a/usr/src/ucbcmd/plot/libplot/t450/point.c b/usr/src/ucbcmd/plot/libplot/t450/point.c index 7389adde38..eea1f16f3c 100644 --- a/usr/src/ucbcmd/plot/libplot/t450/point.c +++ b/usr/src/ucbcmd/plot/libplot/t450/point.c @@ -19,18 +19,19 @@ * * CDDL HEADER END */ +/* + * 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 */ +#pragma ident "%Z%%M% %I% %E% SMI" -#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ - -/* - * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ - -point(xi,yi){ +void +point(int xi, int yi) +{ move(xi,yi); label("."); return; diff --git a/usr/src/ucbcmd/plot/libplot/t450/space.c b/usr/src/ucbcmd/plot/libplot/t450/space.c index 70f60955d4..6f0c5a2606 100644 --- a/usr/src/ucbcmd/plot/libplot/t450/space.c +++ b/usr/src/ucbcmd/plot/libplot/t450/space.c @@ -19,19 +19,21 @@ * * CDDL HEADER END */ +/* + * 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) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ +#pragma ident "%Z%%M% %I% %E% SMI" # include "con.h" -space(x0,y0,x1,y1){ + +void +space(int x0, int y0, int x1, int y1) +{ botx = -2047.; boty = -2047.; obotx = x0; diff --git a/usr/src/ucbcmd/plot/libplot/t450/subr.c b/usr/src/ucbcmd/plot/libplot/t450/subr.c index 05fb7841a7..3f491c6705 100644 --- a/usr/src/ucbcmd/plot/libplot/t450/subr.c +++ b/usr/src/ucbcmd/plot/libplot/t450/subr.c @@ -19,25 +19,29 @@ * * CDDL HEADER END */ +/* + * 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) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. - * All Rights Reserved. - */ +#pragma ident "%Z%%M% %I% %E% SMI" #include <stdio.h> #include "con.h" -abval(q) + +void spew(int); + +int +abval(int q) { return (q>=0 ? q : -q); } -xconv (xp) +int +xconv(int xp) { /* x position input is -2047 to +2047, output must be 0 to PAGSIZ*HORZRES */ xp += 2048; @@ -45,27 +49,31 @@ xconv (xp) return (xoffset + xp /xscale); } -yconv (yp) +int +yconv(int yp) { /* see description of xconv */ yp += 2048; return (yp / yscale); } -inplot() +void +inplot(void) { spew (ESC); spew(PLOTIN); } -outplot() +void +outplot(void) { spew(ESC); spew(PLOTOUT); fflush(stdout); } -spew(ch) +void +spew(int ch) { if(ch == UP){ putc(ESC,stdout); @@ -74,11 +82,14 @@ spew(ch) putc(ch, stdout); } -tobotleft () +void +tobotleft(void) { move(-2048,-2048); } -reset() + +void +reset(void) { signal(2,1); outplot(); @@ -87,7 +98,7 @@ reset() } float -dist2 (x1, y1, x2, y2) +dist2(int x1, int y1, int x2, int y2) { float t,v; t = x2-x1; @@ -95,15 +106,17 @@ dist2 (x1, y1, x2, y2) return (t*t+v*v); } -swap (pa, pb) -int *pa, *pb; +void +swap(int *pa, int *pb) { int t; t = *pa; *pa = *pb; *pb = t; } -movep (xg,yg) + +void +movep(int xg, int yg) { int i,ch; if((xg == xnow) && (yg == ynow))return; @@ -136,12 +149,17 @@ movep (xg,yg) xnow = xg; ynow = yg; } -xsc(xi){ +int +xsc(int xi) +{ int xa; xa = (xi - obotx) * scalex + botx; return(xa); } -ysc(yi){ + +int +ysc(int yi) +{ int ya; ya = (yi - oboty) *scaley +boty; return(ya); |