1*779fc935Sceastha /*
2*779fc935Sceastha * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
3*779fc935Sceastha * Use is subject to license terms.
4*779fc935Sceastha */
5*779fc935Sceastha
67c478bd9Sstevel@tonic-gate /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
77c478bd9Sstevel@tonic-gate /* All Rights Reserved */
87c478bd9Sstevel@tonic-gate
97c478bd9Sstevel@tonic-gate /*
107c478bd9Sstevel@tonic-gate * Copyright (c) 1980 Regents of the University of California.
117c478bd9Sstevel@tonic-gate * All rights reserved. The Berkeley software License Agreement
127c478bd9Sstevel@tonic-gate * specifies the terms and conditions for redistribution.
137c478bd9Sstevel@tonic-gate */
147c478bd9Sstevel@tonic-gate
15*779fc935Sceastha #pragma ident "%Z%%M% %I% %E% SMI"
167c478bd9Sstevel@tonic-gate
177c478bd9Sstevel@tonic-gate #include "e.h"
187c478bd9Sstevel@tonic-gate #include "e.def"
197c478bd9Sstevel@tonic-gate
20*779fc935Sceastha void
integral(int p,int p1,int p2)21*779fc935Sceastha integral(int p, int p1, int p2)
22*779fc935Sceastha {
237c478bd9Sstevel@tonic-gate #ifndef NEQN
247c478bd9Sstevel@tonic-gate if (p1 != 0)
257c478bd9Sstevel@tonic-gate printf(".ds %d \\h'-0.4m'\\v'0.4m'\\*(%d\\v'-0.4m'\n", p1, p1);
267c478bd9Sstevel@tonic-gate if (p2 != 0)
277c478bd9Sstevel@tonic-gate printf(".ds %d \\v'-0.3m'\\*(%d\\v'0.3m'\n", p2, p2);
287c478bd9Sstevel@tonic-gate #endif
297c478bd9Sstevel@tonic-gate if (p1 != 0 && p2 != 0)
307c478bd9Sstevel@tonic-gate shift2(p, p1, p2);
317c478bd9Sstevel@tonic-gate else if (p1 != 0)
327c478bd9Sstevel@tonic-gate bshiftb(p, SUB, p1);
337c478bd9Sstevel@tonic-gate else if (p2 != 0)
347c478bd9Sstevel@tonic-gate bshiftb(p, SUP, p2);
35*779fc935Sceastha if (dbg)
36*779fc935Sceastha printf(".\tintegral: S%d; h=%d b=%d\n",
377c478bd9Sstevel@tonic-gate p, eht[p], ebase[p]);
387c478bd9Sstevel@tonic-gate lfont[p] = ROM;
397c478bd9Sstevel@tonic-gate }
407c478bd9Sstevel@tonic-gate
41*779fc935Sceastha void
setintegral(void)42*779fc935Sceastha setintegral(void)
43*779fc935Sceastha {
447c478bd9Sstevel@tonic-gate char *f;
457c478bd9Sstevel@tonic-gate
467c478bd9Sstevel@tonic-gate yyval = oalloc();
477c478bd9Sstevel@tonic-gate f = "\\(is";
487c478bd9Sstevel@tonic-gate #ifndef NEQN
497c478bd9Sstevel@tonic-gate printf(".ds %d \\s%d\\v'.1m'\\s+4%s\\s-4\\v'-.1m'\\s%d\n",
507c478bd9Sstevel@tonic-gate yyval, ps, f, ps);
517c478bd9Sstevel@tonic-gate eht[yyval] = VERT(EM(1.15, ps+4));
527c478bd9Sstevel@tonic-gate ebase[yyval] = VERT(EM(0.3, ps));
53*779fc935Sceastha #else /* NEQN */
547c478bd9Sstevel@tonic-gate printf(".ds %d %s\n", yyval, f);
557c478bd9Sstevel@tonic-gate eht[yyval] = VERT(2);
567c478bd9Sstevel@tonic-gate ebase[yyval] = 0;
57*779fc935Sceastha #endif /* NEQN */
587c478bd9Sstevel@tonic-gate lfont[yyval] = rfont[yyval] = ROM;
597c478bd9Sstevel@tonic-gate }
60