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