1*0Sstevel@tonic-gate /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2*0Sstevel@tonic-gate /* All Rights Reserved */ 3*0Sstevel@tonic-gate 4*0Sstevel@tonic-gate 5*0Sstevel@tonic-gate /* 6*0Sstevel@tonic-gate * Copyright (c) 1980 Regents of the University of California. 7*0Sstevel@tonic-gate * All rights reserved. The Berkeley software License Agreement 8*0Sstevel@tonic-gate * specifies the terms and conditions for redistribution. 9*0Sstevel@tonic-gate */ 10*0Sstevel@tonic-gate 11*0Sstevel@tonic-gate /* 12*0Sstevel@tonic-gate * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. 13*0Sstevel@tonic-gate * All Rights Reserved. 14*0Sstevel@tonic-gate */ 15*0Sstevel@tonic-gate 16*0Sstevel@tonic-gate #ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ 17*0Sstevel@tonic-gate 18*0Sstevel@tonic-gate # include "e.h" 19*0Sstevel@tonic-gate # include "e.def" 20*0Sstevel@tonic-gate 21*0Sstevel@tonic-gate integral(p, p1, p2) { 22*0Sstevel@tonic-gate #ifndef NEQN 23*0Sstevel@tonic-gate if (p1 != 0) 24*0Sstevel@tonic-gate printf(".ds %d \\h'-0.4m'\\v'0.4m'\\*(%d\\v'-0.4m'\n", p1, p1); 25*0Sstevel@tonic-gate if (p2 != 0) 26*0Sstevel@tonic-gate printf(".ds %d \\v'-0.3m'\\*(%d\\v'0.3m'\n", p2, p2); 27*0Sstevel@tonic-gate #endif 28*0Sstevel@tonic-gate if (p1 != 0 && p2 != 0) 29*0Sstevel@tonic-gate shift2(p, p1, p2); 30*0Sstevel@tonic-gate else if (p1 != 0) 31*0Sstevel@tonic-gate bshiftb(p, SUB, p1); 32*0Sstevel@tonic-gate else if (p2 != 0) 33*0Sstevel@tonic-gate bshiftb(p, SUP, p2); 34*0Sstevel@tonic-gate if(dbg)printf(".\tintegral: S%d; h=%d b=%d\n", 35*0Sstevel@tonic-gate p, eht[p], ebase[p]); 36*0Sstevel@tonic-gate lfont[p] = ROM; 37*0Sstevel@tonic-gate } 38*0Sstevel@tonic-gate 39*0Sstevel@tonic-gate setintegral() { 40*0Sstevel@tonic-gate char *f; 41*0Sstevel@tonic-gate 42*0Sstevel@tonic-gate yyval = oalloc(); 43*0Sstevel@tonic-gate f = "\\(is"; 44*0Sstevel@tonic-gate #ifndef NEQN 45*0Sstevel@tonic-gate printf(".ds %d \\s%d\\v'.1m'\\s+4%s\\s-4\\v'-.1m'\\s%d\n", 46*0Sstevel@tonic-gate yyval, ps, f, ps); 47*0Sstevel@tonic-gate eht[yyval] = VERT(EM(1.15, ps+4)); 48*0Sstevel@tonic-gate ebase[yyval] = VERT(EM(0.3, ps)); 49*0Sstevel@tonic-gate #else NEQN 50*0Sstevel@tonic-gate printf(".ds %d %s\n", yyval, f); 51*0Sstevel@tonic-gate eht[yyval] = VERT(2); 52*0Sstevel@tonic-gate ebase[yyval] = 0; 53*0Sstevel@tonic-gate #endif NEQN 54*0Sstevel@tonic-gate lfont[yyval] = rfont[yyval] = ROM; 55*0Sstevel@tonic-gate } 56