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