summaryrefslogtreecommitdiff
path: root/usr/src/ucbcmd/plot/libplot/hp7221
diff options
context:
space:
mode:
authorceastha <none@none>2005-08-18 15:40:59 -0700
committerceastha <none@none>2005-08-18 15:40:59 -0700
commitb7d62af5b42f0da2eb668e8d33d24d2f4fdd98a8 (patch)
tree365a354cfe8236488955cf206e4f43644ca03ea0 /usr/src/ucbcmd/plot/libplot/hp7221
parentd6555420322a42c16b93414c29a62f8e841abc7b (diff)
downloadillumos-joyent-b7d62af5b42f0da2eb668e8d33d24d2f4fdd98a8.tar.gz
6268906 ucbcmd/plot and gcc don't get along
6271073 gcc and cmd/fmt don't get along 6271996 gcc and cmd/mail don't get along 6272084 gcc and cmd/pax don't get along 6273914 gcc and cmd/tar don't get along --HG-- rename : usr/src/cmd/fmt/head.c => deleted_files/usr/src/cmd/fmt/head.c rename : usr/src/cmd/mail/maid.c => deleted_files/usr/src/cmd/mail/maid.c
Diffstat (limited to 'usr/src/ucbcmd/plot/libplot/hp7221')
-rw-r--r--usr/src/ucbcmd/plot/libplot/hp7221/arc.c18
-rw-r--r--usr/src/ucbcmd/plot/libplot/hp7221/box.c17
-rw-r--r--usr/src/ucbcmd/plot/libplot/hp7221/circle.c18
-rw-r--r--usr/src/ucbcmd/plot/libplot/hp7221/close.c17
-rw-r--r--usr/src/ucbcmd/plot/libplot/hp7221/cont.c18
-rw-r--r--usr/src/ucbcmd/plot/libplot/hp7221/dot.c18
-rw-r--r--usr/src/ucbcmd/plot/libplot/hp7221/erase.c18
-rw-r--r--usr/src/ucbcmd/plot/libplot/hp7221/label.c18
-rw-r--r--usr/src/ucbcmd/plot/libplot/hp7221/line.c18
-rw-r--r--usr/src/ucbcmd/plot/libplot/hp7221/linemod.c18
-rw-r--r--usr/src/ucbcmd/plot/libplot/hp7221/move.c18
-rw-r--r--usr/src/ucbcmd/plot/libplot/hp7221/open.c17
-rw-r--r--usr/src/ucbcmd/plot/libplot/hp7221/point.c18
-rw-r--r--usr/src/ucbcmd/plot/libplot/hp7221/space.c18
-rw-r--r--usr/src/ucbcmd/plot/libplot/hp7221/subr.c26
15 files changed, 126 insertions, 149 deletions
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 ) {