1: #include "ne.h" 2: 3: int markpos; 4: 5: mark(n) int n; { 6: if( n ) 7: markpos = ewid[n]; 8: else { 9: yyval = oalloc(); 10: printf(".ds %d \"\n", yyval); 11: ebase[yyval] = ewid[yyval] = markpos = 0; 12: eht[yyval] = 2; 13: } 14: if(dbg)printf(".\tmark %d as %d\n", n, markpos); 15: } 16: 17: lineup(n) int n; { 18: if( n ) { 19: printf(".ds %d \"", n); 20: fwd(markpos-ewid[n]); 21: printf("\\*(%d\n", n); 22: ewid[n] = markpos; 23: } 24: else { 25: yyval = oalloc(); 26: printf(".ds %d \"", yyval); 27: fwd(markpos); 28: printf("\n"); 29: ebase[yyval] = 0; 30: eht[yyval] = 2; 31: ewid[yyval] = markpos; 32: } 33: if(dbg)printf(".\tlineup %d at %d\n", n, markpos); 34: }