[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.6

version 1.3, 2017/06/14 17:51:15 version 1.6, 2020/06/22 19:20:40
Line 1 
Line 1 
 /*      $OpenBSD$ */  /* $Id$ */
 /*  /*
  * Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org>   * Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org>
  *   *
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.
  */   */
   #include "config.h"
   
 #include <sys/types.h>  #include <sys/types.h>
   
 #include <stddef.h>  #include <stddef.h>
Line 86  term_tab_set(const struct termp *p, const char *arg)
Line 88  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.6

CVSweb