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

Diff for /mandoc/mdoc.c between version 1.101 and 1.102

version 1.101, 2009/08/19 11:58:32 version 1.102, 2009/08/19 14:09:33
Line 459  mdoc_tail_alloc(struct mdoc *m, int line, int pos, int
Line 459  mdoc_tail_alloc(struct mdoc *m, int line, int pos, int
         p = node_alloc(m, line, pos, tok, MDOC_TAIL);          p = node_alloc(m, line, pos, tok, MDOC_TAIL);
         if (NULL == p)          if (NULL == p)
                 return(0);                  return(0);
         return(node_append(m, p));          if ( ! node_append(m, p))
                   return(0);
           m->next = MDOC_NEXT_CHILD;
           return(1);
 }  }
   
   
Line 474  mdoc_head_alloc(struct mdoc *m, int line, int pos, int
Line 477  mdoc_head_alloc(struct mdoc *m, int line, int pos, int
         p = node_alloc(m, line, pos, tok, MDOC_HEAD);          p = node_alloc(m, line, pos, tok, MDOC_HEAD);
         if (NULL == p)          if (NULL == p)
                 return(0);                  return(0);
         return(node_append(m, p));          if ( ! node_append(m, p))
                   return(0);
           m->next = MDOC_NEXT_CHILD;
           return(1);
 }  }
   
   
Line 486  mdoc_body_alloc(struct mdoc *m, int line, int pos, int
Line 492  mdoc_body_alloc(struct mdoc *m, int line, int pos, int
         p = node_alloc(m, line, pos, tok, MDOC_BODY);          p = node_alloc(m, line, pos, tok, MDOC_BODY);
         if (NULL == p)          if (NULL == p)
                 return(0);                  return(0);
         return(node_append(m, p));          if ( ! node_append(m, p))
                   return(0);
           m->next = MDOC_NEXT_CHILD;
           return(1);
 }  }
   
   
Line 502  mdoc_block_alloc(struct mdoc *m, int line, int pos, 
Line 511  mdoc_block_alloc(struct mdoc *m, int line, int pos, 
         p->args = args;          p->args = args;
         if (p->args)          if (p->args)
                 (args->refcnt)++;                  (args->refcnt)++;
         return(node_append(m, p));          if ( ! node_append(m, p))
                   return(0);
           m->next = MDOC_NEXT_CHILD;
           return(1);
 }  }
   
   
Line 518  mdoc_elem_alloc(struct mdoc *m, int line, int pos, 
Line 530  mdoc_elem_alloc(struct mdoc *m, int line, int pos, 
         p->args = args;          p->args = args;
         if (p->args)          if (p->args)
                 (args->refcnt)++;                  (args->refcnt)++;
         return(node_append(m, p));          if ( ! node_append(m, p))
                   return(0);
           m->next = MDOC_NEXT_CHILD;
           return(1);
 }  }
   
   

Legend:
Removed from v.1.101  
changed lines
  Added in v.1.102

CVSweb