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

Diff for /mandoc/roff.c between version 1.283 and 1.284

version 1.283, 2015/10/22 21:54:23 version 1.284, 2016/01/08 17:48:10
Line 1024  roff_node_append(struct roff_man *man, struct roff_nod
Line 1024  roff_node_append(struct roff_man *man, struct roff_nod
         default:          default:
                 abort();                  abort();
         }          }
         n->parent->nchild++;  
         man->last = n;          man->last = n;
   
         switch (n->type) {          switch (n->type) {
Line 1169  roff_node_unlink(struct roff_man *man, struct roff_nod
Line 1168  roff_node_unlink(struct roff_man *man, struct roff_nod
         /* Adjust parent. */          /* Adjust parent. */
   
         if (n->parent != NULL) {          if (n->parent != NULL) {
                 n->parent->nchild--;  
                 if (n->parent->child == n)                  if (n->parent->child == n)
                         n->parent->child = n->next;                          n->parent->child = n->next;
                 if (n->parent->last == n)                  if (n->parent->last == n)
Line 1211  roff_node_delete(struct roff_man *man, struct roff_nod
Line 1209  roff_node_delete(struct roff_man *man, struct roff_nod
   
         while (n->child != NULL)          while (n->child != NULL)
                 roff_node_delete(man, n->child);                  roff_node_delete(man, n->child);
         assert(n->nchild == 0);  
         roff_node_unlink(man, n);          roff_node_unlink(man, n);
         roff_node_free(n);          roff_node_free(n);
 }  }

Legend:
Removed from v.1.283  
changed lines
  Added in v.1.284

CVSweb