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

Diff for /mandoc/term.c between version 1.125 and 1.128

version 1.125, 2009/11/12 05:50:12 version 1.128, 2010/01/01 17:14:30
Line 14 
Line 14 
  * 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"
   #endif
   
   #include <sys/types.h>
   
 #include <assert.h>  #include <assert.h>
 #include <ctype.h>  #include <ctype.h>
 #include <stdio.h>  #include <stdio.h>
Line 485  term_word(struct termp *p, const char *word)
Line 491  term_word(struct termp *p, const char *word)
                 default:                  default:
                         break;                          break;
                 }                  }
   
                 word += sz;                  word += sz;
                   if (DECO_NOSPACE == deco && '\0' == *word)
                           p->flags |= TERMP_NOSPACE;
         }          }
   
         if (sv[0] && 0 == sv[1])          if (sv[0] && 0 == sv[1])
Line 527  buffera(struct termp *p, const char *word, size_t sz)
Line 536  buffera(struct termp *p, const char *word, size_t sz)
         if (p->col + sz >= p->maxcols)          if (p->col + sz >= p->maxcols)
                 adjbuf(p, p->col + sz);                  adjbuf(p, p->col + sz);
   
         memcpy(&p->buf[p->col], word, sz);          memcpy(&p->buf[(int)p->col], word, sz);
         p->col += sz;          p->col += sz;
 }  }
   
Line 539  bufferc(struct termp *p, char c)
Line 548  bufferc(struct termp *p, char c)
         if (p->col + 1 >= p->maxcols)          if (p->col + 1 >= p->maxcols)
                 adjbuf(p, p->col + 1);                  adjbuf(p, p->col + 1);
   
         p->buf[p->col++] = c;          p->buf[(int)p->col++] = c;
 }  }
   
   

Legend:
Removed from v.1.125  
changed lines
  Added in v.1.128

CVSweb