1*14486Ssam #ifndef lint 2*14486Ssam static char sccsid[] = "@(#)over.c 4.3 08/11/83"; 3*14486Ssam #endif 411013Sshannon 511013Sshannon # include "e.h" 611013Sshannon 711013Sshannon boverb(p1, p2) int p1, p2; { 811013Sshannon int h, b, treg, d; 911013Sshannon 1011013Sshannon treg = oalloc(); 1111013Sshannon yyval = p1; 1211023Sshannon #ifndef NEQN 1311013Sshannon d = VERT((ps*6*3) / 10); /* 0.3m */ 1411013Sshannon h = eht[p1] + eht[p2] + d; 1511023Sshannon #else NEQN 1611023Sshannon d = VERT(1); 1711023Sshannon h = eht[p1] + eht[p2]; 1811023Sshannon #endif NEQN 1911013Sshannon b = eht[p2] - d; 2011013Sshannon if(dbg)printf(".\tb:bob: S%d <- S%d over S%d; b=%d, h=%d\n", 2111013Sshannon yyval, p1, p2, b, h); 2211013Sshannon nrwid(p1, ps, p1); 2311013Sshannon nrwid(p2, ps, p2); 2411013Sshannon printf(".nr %d \\n(%d\n", treg, p1); 2511013Sshannon printf(".if \\n(%d>\\n(%d .nr %d \\n(%d\n", p2, treg, treg, p2); 2611023Sshannon #ifndef NEQN 2711013Sshannon printf(".nr %d \\n(%d+\\s%d.5m\\s0\n", treg, treg, EFFPS(ps)); 2811023Sshannon #endif NEQN 2911013Sshannon printf(".ds %d \\v'%du'\\h'\\n(%du-\\n(%du/2u'\\*(%d\\\n", 3011013Sshannon yyval, eht[p2]-ebase[p2]-d, treg, p2, p2); 3111013Sshannon printf("\\h'-\\n(%du-\\n(%du/2u'\\v'%du'\\*(%d\\\n", 3211023Sshannon #ifndef NEQN 3311013Sshannon p2, p1, -(eht[p2]-ebase[p2]+d+ebase[p1]), p1); 3411013Sshannon printf("\\h'-\\n(%du-\\n(%du/2u+.1m'\\v'%du'\\l'\\n(%du-.2m'\\h'.1m'\\v'%du'\n", 3511013Sshannon treg, p1, ebase[p1]+d, treg, d); 3611023Sshannon #else NEQN 3711023Sshannon p2, p1, -eht[p2]+ebase[p2]-ebase[p1], p1); 3811023Sshannon printf("\\h'-\\n(%du-\\n(%du-2u/2u'\\v'%du'\\l'\\n(%du'\\v'%du'\n", 3911023Sshannon treg, p1, ebase[p1], treg, d); 4011023Sshannon #endif NEQN 4111013Sshannon ebase[yyval] = b; 4211013Sshannon eht[yyval] = h; 4311013Sshannon lfont[yyval] = rfont[yyval] = 0; 4411013Sshannon ofree(p2); 4511013Sshannon ofree(treg); 4611013Sshannon } 47