summaryrefslogtreecommitdiff
path: root/usr/src/cmd/eqn/eqnbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/eqn/eqnbox.c')
-rw-r--r--usr/src/cmd/eqn/eqnbox.c29
1 files changed, 15 insertions, 14 deletions
diff --git a/usr/src/cmd/eqn/eqnbox.c b/usr/src/cmd/eqn/eqnbox.c
index 84f6cc5da4..7bd0753840 100644
--- a/usr/src/cmd/eqn/eqnbox.c
+++ b/usr/src/cmd/eqn/eqnbox.c
@@ -1,33 +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 */
-
/*
* 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.
- */
-
-#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */
-# include "e.h"
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#include "e.h"
-eqnbox(p1, p2, lu) {
+void
+eqnbox(int p1, int p2, int lu)
+{
int b, h;
char *sh;
yyval = p1;
b = max(ebase[p1], ebase[p2]);
- eht[yyval] = h = b + max(eht[p1]-ebase[p1],
- eht[p2]-ebase[p2]);
+ eht[yyval] = h = b + max(eht[p1]-ebase[p1], eht[p2]-ebase[p2]);
ebase[yyval] = b;
- if(dbg)printf(".\te:eb: S%d <- S%d S%d; b=%d, h=%d\n",
- yyval, p1, p2, b, h);
+ if (dbg)
+ printf(".\te:eb: S%d <- S%d S%d; b=%d, h=%d\n",
+ yyval, p1, p2, b, h);
if (rfont[p1] == ITAL && lfont[p2] == ROM)
sh = "\\|";
else