diff options
Diffstat (limited to 'usr/src/ucbcmd/plot/libplot/imagen/line.c')
| -rw-r--r-- | usr/src/ucbcmd/plot/libplot/imagen/line.c | 30 |
1 files changed, 19 insertions, 11 deletions
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); |
