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

Diff for /mandoc/term_tab.c between version 1.3 and 1.5

version 1.3, 2017/06/14 17:51:15 version 1.5, 2018/12/16 00:21:05
Line 1 
Line 1 
 /*      $OpenBSD$ */  /*      $Id$ */
 /*  /*
  * Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org>   * Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org>
  *   *
Line 86  term_tab_set(const struct termp *p, const char *arg)
Line 86  term_tab_set(const struct termp *p, const char *arg)
         if (add && tl->n)          if (add && tl->n)
                 tl->t[tl->n] += tl->t[tl->n - 1];                  tl->t[tl->n] += tl->t[tl->n - 1];
         tl->n++;          tl->n++;
   }
   
   /*
    * Simplified version without a parser,
    * never incremental, never periodic, for use by tbl(7).
    */
   void
   term_tab_iset(size_t inc)
   {
           if (tabs.a.n >= tabs.a.s) {
                   tabs.a.s += 8;
                   tabs.a.t = mandoc_reallocarray(tabs.a.t, tabs.a.s,
                       sizeof(*tabs.a.t));
           }
           tabs.a.t[tabs.a.n++] = inc;
 }  }
   
 size_t  size_t

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.5

CVSweb