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

Diff for /mandoc/mdoc.c between version 1.75 and 1.77

version 1.75, 2009/04/12 19:45:26 version 1.77, 2009/06/12 12:52:51
Line 1 
Line 1 
 /*      $Id$ */  /*      $Id$ */
 /*  /*
  * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org>   * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
  *   *
  * 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 480  mdoc_block_alloc(struct mdoc *mdoc, int line, int pos,
Line 480  mdoc_block_alloc(struct mdoc *mdoc, int line, int pos,
         p = node_alloc(mdoc, line, pos, tok, MDOC_BLOCK);          p = node_alloc(mdoc, line, pos, tok, MDOC_BLOCK);
         if (NULL == p)          if (NULL == p)
                 return(0);                  return(0);
         if ((p->args = args))          p->args = args;
           if (p->args)
                 (args->refcnt)++;                  (args->refcnt)++;
         return(node_append(mdoc, p));          return(node_append(mdoc, p));
 }  }
Line 495  mdoc_elem_alloc(struct mdoc *mdoc, int line, int pos, 
Line 496  mdoc_elem_alloc(struct mdoc *mdoc, int line, int pos, 
         p = node_alloc(mdoc, line, pos, tok, MDOC_ELEM);          p = node_alloc(mdoc, line, pos, tok, MDOC_ELEM);
         if (NULL == p)          if (NULL == p)
                 return(0);                  return(0);
         if ((p->args = args))          p->args = args;
           if (p->args)
                 (args->refcnt)++;                  (args->refcnt)++;
         return(node_append(mdoc, p));          return(node_append(mdoc, p));
 }  }

Legend:
Removed from v.1.75  
changed lines
  Added in v.1.77

CVSweb