diff options
Diffstat (limited to 'usr/src/ucbcmd/plot/libplot/aed')
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/aed/aed.h | 22 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/aed/arc.c | 18 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/aed/box.c | 17 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/aed/circle.c | 18 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/aed/close.c | 17 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/aed/cont.c | 18 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/aed/dot.c | 18 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/aed/erase.c | 17 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/aed/label.c | 18 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/aed/line.c | 38 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/aed/linemod.c | 18 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/aed/move.c | 18 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/aed/open.c | 17 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/aed/point.c | 18 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/aed/space.c | 18 | ||||
-rw-r--r-- | usr/src/ucbcmd/plot/libplot/aed/subr.c | 47 |
16 files changed, 174 insertions, 163 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])) |