summaryrefslogtreecommitdiff
path: root/usr/src/ucbcmd/plot/libplot/t450/line.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/ucbcmd/plot/libplot/t450/line.c')
-rw-r--r--usr/src/ucbcmd/plot/libplot/t450/line.c28
1 files changed, 19 insertions, 9 deletions
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;