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

Diff for /src/usr.bin/mandoc/mdoc.c between version 1.97 and 1.98

version 1.97, 2013/12/30 00:52:18 version 1.98, 2014/01/05 20:26:27
Line 1 
Line 1 
 /*      $Id$ */  /*      $Id$ */
 /*  /*
  * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2010, 2012, 2013 Ingo Schwarze <schwarze@openbsd.org>   * Copyright (c) 2010, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above   * purpose with or without fee is hereby granted, provided that the above
Line 193 
Line 193 
  * Allocate volatile and non-volatile parse resources.   * Allocate volatile and non-volatile parse resources.
  */   */
 struct mdoc *  struct mdoc *
 mdoc_alloc(struct roff *roff, struct mparse *parse, char *defos)  mdoc_alloc(struct roff *roff, struct mparse *parse,
           char *defos, int quick)
 {  {
         struct mdoc     *p;          struct mdoc     *p;
   
Line 201 
Line 202 
   
         p->parse = parse;          p->parse = parse;
         p->defos = defos;          p->defos = defos;
           p->quick = quick;
         p->roff = roff;          p->roff = roff;
   
         mdoc_hash_init();          mdoc_hash_init();
Line 956 
Line 958 
   
         if ( ! mdoc_macro(mdoc, tok, ln, sv, &offs, buf))          if ( ! mdoc_macro(mdoc, tok, ln, sv, &offs, buf))
                 goto err;                  goto err;
   
           /* In quick mode (for mandocdb), abort after the NAME section. */
   
           if (mdoc->quick && MDOC_Sh == tok &&
               SEC_NAME != mdoc->last->sec)
                   return(2);
   
         return(1);          return(1);
   

Legend:
Removed from v.1.97  
changed lines
  Added in v.1.98