1 /* over.c 4.2 83/02/12 */ 2 3 # include "e.h" 4 5 boverb(p1, p2) int p1, p2; { 6 int h, b, treg, d; 7 8 treg = oalloc(); 9 yyval = p1; 10 #ifndef NEQN 11 d = VERT((ps*6*3) / 10); /* 0.3m */ 12 h = eht[p1] + eht[p2] + d; 13 #else NEQN 14 d = VERT(1); 15 h = eht[p1] + eht[p2]; 16 #endif NEQN 17 b = eht[p2] - d; 18 if(dbg)printf(".\tb:bob: S%d <- S%d over S%d; b=%d, h=%d\n", 19 yyval, p1, p2, b, h); 20 nrwid(p1, ps, p1); 21 nrwid(p2, ps, p2); 22 printf(".nr %d \\n(%d\n", treg, p1); 23 printf(".if \\n(%d>\\n(%d .nr %d \\n(%d\n", p2, treg, treg, p2); 24 #ifndef NEQN 25 printf(".nr %d \\n(%d+\\s%d.5m\\s0\n", treg, treg, EFFPS(ps)); 26 #endif NEQN 27 printf(".ds %d \\v'%du'\\h'\\n(%du-\\n(%du/2u'\\*(%d\\\n", 28 yyval, eht[p2]-ebase[p2]-d, treg, p2, p2); 29 printf("\\h'-\\n(%du-\\n(%du/2u'\\v'%du'\\*(%d\\\n", 30 #ifndef NEQN 31 p2, p1, -(eht[p2]-ebase[p2]+d+ebase[p1]), p1); 32 printf("\\h'-\\n(%du-\\n(%du/2u+.1m'\\v'%du'\\l'\\n(%du-.2m'\\h'.1m'\\v'%du'\n", 33 treg, p1, ebase[p1]+d, treg, d); 34 #else NEQN 35 p2, p1, -eht[p2]+ebase[p2]-ebase[p1], p1); 36 printf("\\h'-\\n(%du-\\n(%du-2u/2u'\\v'%du'\\l'\\n(%du'\\v'%du'\n", 37 treg, p1, ebase[p1], treg, d); 38 #endif NEQN 39 ebase[yyval] = b; 40 eht[yyval] = h; 41 lfont[yyval] = rfont[yyval] = 0; 42 ofree(p2); 43 ofree(treg); 44 } 45