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

Diff for /mandoc/man.c between version 1.122 and 1.123

version 1.122, 2013/12/31 23:23:10 version 1.123, 2014/01/05 20:26:36
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) 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 97  man_free(struct man *man)
Line 98  man_free(struct man *man)
   
   
 struct man *  struct man *
 man_alloc(struct roff *roff, struct mparse *parse)  man_alloc(struct roff *roff, struct mparse *parse, int quick)
 {  {
         struct man      *p;          struct man      *p;
   
Line 105  man_alloc(struct roff *roff, struct mparse *parse)
Line 106  man_alloc(struct roff *roff, struct mparse *parse)
   
         man_hash_init();          man_hash_init();
         p->parse = parse;          p->parse = parse;
           p->quick = quick;
         p->roff = roff;          p->roff = roff;
   
         man_alloc1(p);          man_alloc1(p);
Line 603  man_pmacro(struct man *man, int ln, char *buf, int off
Line 605  man_pmacro(struct man *man, int ln, char *buf, int off
         assert(man_macros[tok].fp);          assert(man_macros[tok].fp);
         if ( ! (*man_macros[tok].fp)(man, tok, ln, ppos, &offs, buf))          if ( ! (*man_macros[tok].fp)(man, tok, ln, ppos, &offs, buf))
                 goto err;                  goto err;
   
           /* In quick mode (for mandocdb), abort after the NAME section. */
   
           if (man->quick && MAN_SH == tok &&
               strcmp(man->last->prev->child->string, "NAME"))
                   return(2);
   
         /*          /*
          * We weren't in a block-line scope when entering the           * We weren't in a block-line scope when entering the

Legend:
Removed from v.1.122  
changed lines
  Added in v.1.123

CVSweb