[BACK]Return to term.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/term.c between version 1.103 and 1.104

version 1.103, 2015/01/21 20:20:49 version 1.104, 2015/01/31 00:11:52
Line 361 
Line 361 
         p->fontq[p->fonti] = f;          p->fontq[p->fonti] = f;
 }  }
   
 /* Retrieve pointer to current font. */  
 const enum termfont *  
 term_fontq(struct termp *p)  
 {  
   
         return(&p->fontq[p->fonti]);  
 }  
   
 /* Flush to make the saved pointer current again. */  /* Flush to make the saved pointer current again. */
 void  void
 term_fontpopq(struct termp *p, const enum termfont *key)  term_fontpopq(struct termp *p, int i)
 {  {
   
         while (p->fonti >= 0 && key < p->fontq + p->fonti)          assert(i >= 0);
                 p->fonti--;          if (p->fonti > i)
         assert(p->fonti >= 0);                  p->fonti = i;
 }  }
   
 /* Pop one font off the stack. */  /* Pop one font off the stack. */
Line 566 
Line 558 
         if (p->col + 6 >= p->maxcols)          if (p->col + 6 >= p->maxcols)
                 adjbuf(p, p->col + 6);                  adjbuf(p, p->col + 6);
   
         f = *term_fontq(p);          f = p->fontq[p->fonti];
   
         if (TERMFONT_UNDER == f || TERMFONT_BI == f) {          if (TERMFONT_UNDER == f || TERMFONT_BI == f) {
                 p->buf[p->col++] = '_';                  p->buf[p->col++] = '_';
Line 598 
Line 590 
          * character by character.           * character by character.
          */           */
   
         if (*term_fontq(p) == TERMFONT_NONE) {          if (p->fontq[p->fonti] == TERMFONT_NONE) {
                 if (p->col + sz >= p->maxcols)                  if (p->col + sz >= p->maxcols)
                         adjbuf(p, p->col + sz);                          adjbuf(p, p->col + sz);
                 for (i = 0; i < sz; i++)                  for (i = 0; i < sz; i++)

Legend:
Removed from v.1.103  
changed lines
  Added in v.1.104