Print this page
9718 update mandoc to 1.14.4

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/mandoc/out.h
          +++ new/usr/src/cmd/mandoc/out.h
   1      -/*      $Id: out.h,v 1.31 2017/06/27 18:25:02 schwarze Exp $ */
        1 +/*      $Id: out.h,v 1.32 2018/06/25 16:54:59 schwarze Exp $ */
   2    2  /*
   3    3   * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
   4    4   * Copyright (c) 2014, 2017 Ingo Schwarze <schwarze@openbsd.org>
   5    5   *
   6    6   * Permission to use, copy, modify, and distribute this software for any
   7    7   * purpose with or without fee is hereby granted, provided that the above
   8    8   * copyright notice and this permission notice appear in all copies.
   9    9   *
  10   10   * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  11   11   * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
↓ open down ↓ 35 lines elided ↑ open up ↑
  47   47  typedef size_t  (*tbl_len)(size_t, void *);
  48   48  
  49   49  struct  rofftbl {
  50   50          tbl_sulen        sulen; /* calculate scaling unit length */
  51   51          tbl_strlen       slen; /* calculate string length */
  52   52          tbl_len          len; /* produce width of empty space */
  53   53          struct roffcol  *cols; /* master column specifiers */
  54   54          void            *arg; /* passed to sulen, slen, and len */
  55   55  };
  56   56  
  57      -#define SCALE_VS_INIT(p, v) \
  58      -        do { (p)->unit = SCALE_VS; \
  59      -             (p)->scale = (v); } \
  60      -        while (/* CONSTCOND */ 0)
  61      -
  62   57  #define SCALE_HS_INIT(p, v) \
  63   58          do { (p)->unit = SCALE_EN; \
  64   59               (p)->scale = (v); } \
  65   60          while (/* CONSTCOND */ 0)
  66   61  
  67   62  
  68   63  struct  tbl_span;
  69   64  
  70   65  const char       *a2roffsu(const char *, struct roffsu *, enum roffscale);
  71   66  void              tblcalc(struct rofftbl *tbl,
  72   67                          const struct tbl_span *, size_t, size_t);
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX