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

Diff for /mandoc/term.c between version 1.102 and 1.104

version 1.102, 2009/09/20 13:43:31 version 1.104, 2009/10/10 11:05:23
Line 25 
Line 25 
 #include "man.h"  #include "man.h"
 #include "mdoc.h"  #include "mdoc.h"
   
   /* FIXME: accomodate non-breaking, non-collapsing white-space. */
   /* FIXME: accomodate non-breaking, collapsing white-space. */
   
 extern  void              man_run(struct termp *,  extern  void              man_run(struct termp *,
                                 const struct man *);                                  const struct man *);
 extern  void              mdoc_run(struct termp *,  extern  void              mdoc_run(struct termp *,
Line 156  void
Line 159  void
 term_flushln(struct termp *p)  term_flushln(struct termp *p)
 {  {
         int              i, j;          int              i, j;
         size_t           vbl, vsz, vis, maxvis, mmax, bp;          size_t           vbl, vsz, vis, maxvis, mmax, bp, os;
         static int       overstep = 0;          static int       overstep = 0;
   
         /*          /*
Line 169  term_flushln(struct termp *p)
Line 172  term_flushln(struct termp *p)
         assert(p->offset < p->rmargin);          assert(p->offset < p->rmargin);
         assert((int)(p->rmargin - p->offset) - overstep > 0);          assert((int)(p->rmargin - p->offset) - overstep > 0);
   
           /* Save the overstep. */
           os = (size_t)overstep;
   
         maxvis = /* LINTED */          maxvis = /* LINTED */
                 p->rmargin - p->offset - overstep;                  p->rmargin - p->offset - overstep;
         mmax = /* LINTED */          mmax = /* LINTED */
Line 230  term_flushln(struct termp *p)
Line 236  term_flushln(struct termp *p)
                                         putchar(' ');                                          putchar(' ');
                                 vis = 0;                                  vis = 0;
                         }                          }
                           /* Remove the overstep width. */
                           bp += os;
                           os = 0;
                 } else {                  } else {
                         for (j = 0; j < (int)vbl; j++)                          for (j = 0; j < (int)vbl; j++)
                                 putchar(' ');                                  putchar(' ');

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

CVSweb