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

Diff for /mandoc/term_ascii.c between version 1.42 and 1.43

version 1.42, 2014/12/31 16:52:40 version 1.43, 2015/02/16 14:11:41
Line 63  ascii_init(enum termenc enc, const struct mchars *mcha
Line 63  ascii_init(enum termenc enc, const struct mchars *mcha
         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 109  ascii_init(enum termenc enc, const struct mchars *mcha
Line 111  ascii_init(enum termenc enc, const struct mchars *mcha
         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.42  
changed lines
  Added in v.1.43

CVSweb