|
|
1.1 ! root 1: #include "e.h" ! 2: #include "y.tab.h" ! 3: ! 4: extern int Intps; ! 5: extern float Intht, Intbase, Int1h, Int1v, Int2h, Int2v; ! 6: extern char *Integral; ! 7: ! 8: integral(p, p1, p2) ! 9: { ! 10: if (p1 != 0) ! 11: printf(".ds %d \\h'%gm'\\v'%gm'\\*(%d\\v'%gm'\n", p1, -Int1h, Int1v, p1, -Int1v); ! 12: if (p2 != 0) ! 13: printf(".ds %d \\v'%gm'\\h'%gm'\\*(%d\\v'%gm'\n", p2, -Int2v, Int2h, p2, Int2v); ! 14: if (p1 != 0 && p2 != 0) ! 15: shift2(p, p1, p2); ! 16: else if (p1 != 0) ! 17: bshiftb(p, SUB, p1); ! 18: else if (p2 != 0) ! 19: bshiftb(p, SUP, p2); ! 20: dprintf(".\tintegral: S%d; h=%g b=%g\n", p, eht[p], ebase[p]); ! 21: lfont[p] = ROM; ! 22: } ! 23: ! 24: setintegral() ! 25: { ! 26: yyval = salloc(); ! 27: printf(".ds %d %s\n", yyval, Integral); ! 28: eht[yyval] = EM(Intht, ps+Intps); ! 29: ebase[yyval] = EM(Intbase, ps); ! 30: eps[yyval] = ps; ! 31: lfont[yyval] = rfont[yyval] = ROM; ! 32: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.