[BACK]Return to term.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/term.c between version 1.246 and 1.247

version 1.246, 2015/04/02 23:48:20 version 1.247, 2015/04/04 17:47:18
Line 619  void
Line 619  void
 term_setwidth(struct termp *p, const char *wstr)  term_setwidth(struct termp *p, const char *wstr)
 {  {
         struct roffsu    su;          struct roffsu    su;
         size_t           width;          int              iop, width;
         int              iop;  
   
         iop = 0;          iop = 0;
         width = 0;          width = 0;
Line 831  term_vspan(const struct termp *p, const struct roffsu 
Line 830  term_vspan(const struct termp *p, const struct roffsu 
         return(ri < 66 ? ri : 1);          return(ri < 66 ? ri : 1);
 }  }
   
   /*
    * Convert a scaling width to basic units, rounding down.
    */
 int  int
 term_hspan(const struct termp *p, const struct roffsu *su)  term_hspan(const struct termp *p, const struct roffsu *su)
 {  {
         double           v;  
   
         v = (*p->hspan)(p, su);          return((*p->hspan)(p, su));
         return(v > 0.0 ? v + 0.0005 : v - 0.0005);  
 }  }

Legend:
Removed from v.1.246  
changed lines
  Added in v.1.247

CVSweb