1 #ifndef lint 2 static char *sccsid = "over.c (CWI) 1.1 85/03/01"; 3 #endif 4 # include "e.h" 5 6 boverb(p1, p2) int p1, p2; { 7 int h, b, treg, d; 8 9 treg = oalloc(); 10 yyval = p1; 11 d = VERT( EM(0.3, ps) ); 12 h = eht[p1] + eht[p2] + d; 13 b = eht[p2] - d; 14 if(dbg)printf(".\tb:bob: S%d <- S%d over S%d; b=%d, h=%d\n", 15 yyval, p1, p2, b, h); 16 nrwid(p1, ps, p1); 17 nrwid(p2, ps, p2); 18 printf(".nr %d \\n(%d\n", treg, p1); 19 printf(".if \\n(%d>\\n(%d .nr %d \\n(%d\n", p2, treg, treg, p2); 20 printf(".nr %d \\n(%d+\\s%d.5m\\s0\n", treg, treg, EFFPS(ps)); 21 printf(".ds %d \\v'%du'\\h'\\n(%du-\\n(%du/2u'\\*(%d\\\n", 22 yyval, eht[p2]-ebase[p2]-d, treg, p2, p2); 23 printf("\\h'-\\n(%du-\\n(%du/2u'\\v'%du'\\*(%d\\\n", 24 p2, p1, -(eht[p2]-ebase[p2]+d+ebase[p1]), p1); 25 printf("\\h'-\\n(%du-\\n(%du/2u+.1m'\\v'%du'\\l'\\n(%du-.2m'\\h'.1m'\\v'%du'\n", 26 treg, p1, ebase[p1]+d, treg, d); 27 ebase[yyval] = b; 28 eht[yyval] = h; 29 lfont[yyval] = rfont[yyval] = 0; 30 ofree(p2); 31 ofree(treg); 32 } 33