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

Diff for /mandoc/read.c between version 1.135 and 1.136

version 1.135, 2015/04/18 16:34:25 version 1.136, 2015/04/18 17:01:58
Line 296  choose_parser(struct mparse *curp)
Line 296  choose_parser(struct mparse *curp)
                             MPARSE_QUICK & curp->options ? 1 : 0);                              MPARSE_QUICK & curp->options ? 1 : 0);
                 else                  else
                         curp->man->macroset = MACROSET_MDOC;                          curp->man->macroset = MACROSET_MDOC;
                   mdoc_hash_init();
                 return;                  return;
         }          }
   
Line 307  choose_parser(struct mparse *curp)
Line 308  choose_parser(struct mparse *curp)
                     MPARSE_QUICK & curp->options ? 1 : 0);                      MPARSE_QUICK & curp->options ? 1 : 0);
         else          else
                 curp->man->macroset = MACROSET_MAN;                  curp->man->macroset = MACROSET_MAN;
           man_hash_init();
 }  }
   
 /*  /*
Line 890  mparse_alloc(int options, enum mandoclevel wlevel, man
Line 892  mparse_alloc(int options, enum mandoclevel wlevel, man
   
         curp->mchars = mchars;          curp->mchars = mchars;
         curp->roff = roff_alloc(curp, curp->mchars, options);          curp->roff = roff_alloc(curp, curp->mchars, options);
         if (curp->options & MPARSE_MDOC)          if (curp->options & MPARSE_MDOC) {
                 curp->man = mdoc_alloc(                  curp->man = mdoc_alloc(
                     curp->roff, curp, curp->defos,                      curp->roff, curp, curp->defos,
                     curp->options & MPARSE_QUICK ? 1 : 0);                      curp->options & MPARSE_QUICK ? 1 : 0);
         if (curp->options & MPARSE_MAN)                  mdoc_hash_init();
           }
           if (curp->options & MPARSE_MAN) {
                 curp->man = man_alloc(                  curp->man = man_alloc(
                     curp->roff, curp, curp->defos,                      curp->roff, curp, curp->defos,
                     curp->options & MPARSE_QUICK ? 1 : 0);                      curp->options & MPARSE_QUICK ? 1 : 0);
                   man_hash_init();
           }
   
         return(curp);          return(curp);
 }  }

Legend:
Removed from v.1.135  
changed lines
  Added in v.1.136

CVSweb