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

Diff for /mandoc/term.c between version 1.225 and 1.228

version 1.225, 2014/08/01 19:25:52 version 1.228, 2014/08/18 21:07:53
Line 15 
Line 15 
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF   * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.   * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */   */
 #ifdef HAVE_CONFIG_H  
 #include "config.h"  #include "config.h"
 #endif  
   
 #include <sys/types.h>  #include <sys/types.h>
   
Line 222  term_flushln(struct termp *p)
Line 220  term_flushln(struct termp *p)
                                 break;                                  break;
                         if (' ' == p->buf[i]) {                          if (' ' == p->buf[i]) {
                                 j = i;                                  j = i;
                                 while (' ' == p->buf[i])                                  while (i < p->col && ' ' == p->buf[i])
                                         i++;                                          i++;
                                 dv = (i - j) * (*p->width)(p, ' ');                                  dv = (i - j) * (*p->width)(p, ' ');
                                 vbl += dv;                                  vbl += dv;
Line 793  term_vspan(const struct termp *p, const struct roffsu 
Line 791  term_vspan(const struct termp *p, const struct roffsu 
   
         if (r < 0.0)          if (r < 0.0)
                 r = 0.0;                  r = 0.0;
         return((size_t)r);          return((size_t)(r + 0.0005));
 }  }
   
 size_t  size_t
Line 804  term_hspan(const struct termp *p, const struct roffsu 
Line 802  term_hspan(const struct termp *p, const struct roffsu 
         v = (*p->hspan)(p, su);          v = (*p->hspan)(p, su);
         if (v < 0.0)          if (v < 0.0)
                 v = 0.0;                  v = 0.0;
         return((size_t)v);          return((size_t)(v + 0.0005));
 }  }

Legend:
Removed from v.1.225  
changed lines
  Added in v.1.228

CVSweb