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

Diff for /mandoc/tbl_layout.c between version 1.48 and 1.49

version 1.48, 2018/12/14 05:18:03 version 1.49, 2020/09/01 18:25:28
Line 65  mods(struct tbl_node *tbl, struct tbl_cell *cp,
Line 65  mods(struct tbl_node *tbl, struct tbl_cell *cp,
                 int ln, const char *p, int *pos)                  int ln, const char *p, int *pos)
 {  {
         char            *endptr;          char            *endptr;
           unsigned long    spacing;
         size_t           sz;          size_t           sz;
   
 mod:  mod:
Line 93  mod:
Line 94  mod:
         /* Parse numerical spacing from modifier string. */          /* Parse numerical spacing from modifier string. */
   
         if (isdigit((unsigned char)p[*pos])) {          if (isdigit((unsigned char)p[*pos])) {
                 cp->spacing = strtoull(p + *pos, &endptr, 10);                  if ((spacing = strtoul(p + *pos, &endptr, 10)) > 9)
                           mandoc_msg(MANDOCERR_TBLLAYOUT_SPC, ln, *pos,
                               "%lu", spacing);
                   else
                           cp->spacing = spacing;
                 *pos = endptr - p;                  *pos = endptr - p;
                 goto mod;                  goto mod;
         }          }

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.49

CVSweb