[BACK]Return to term_ascii.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/term_ascii.c between version 1.29 and 1.30

version 1.29, 2014/12/31 16:50:54 version 1.30, 2015/02/16 13:58:32
Line 55 
Line 55 
         const char      *toks[5];          const char      *toks[5];
         char            *v;          char            *v;
         struct termp    *p;          struct termp    *p;
           const char      *errstr;
           int             num;
   
         p = mandoc_calloc(1, sizeof(struct termp));          p = mandoc_calloc(1, sizeof(struct termp));
   
Line 99 
Line 101 
         while (outopts && *outopts)          while (outopts && *outopts)
                 switch (getsubopt(&outopts, UNCONST(toks), &v)) {                  switch (getsubopt(&outopts, UNCONST(toks), &v)) {
                 case 0:                  case 0:
                         p->defindent = (size_t)atoi(v);                          num = strtonum(v, 0, 1000, &errstr);
                           if (!errstr)
                                   p->defindent = num;
                         break;                          break;
                 case 1:                  case 1:
                         p->defrmargin = (size_t)atoi(v);                          num = strtonum(v, 0, 1000, &errstr);
                           if (!errstr)
                                   p->defrmargin = num;
                         break;                          break;
                 case 2:                  case 2:
                         /*                          /*

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30