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

Diff for /mandoc/mdoc_macro.c between version 1.174 and 1.175

version 1.174, 2015/02/04 22:30:10 version 1.175, 2015/02/05 00:14:13
Line 262  rew_last(struct mdoc *mdoc, const struct mdoc_node *to
Line 262  rew_last(struct mdoc *mdoc, const struct mdoc_node *to
         assert(to);          assert(to);
         mdoc->next = MDOC_NEXT_SIBLING;          mdoc->next = MDOC_NEXT_SIBLING;
         while (mdoc->last != to) {          while (mdoc->last != to) {
                 if ( ! (mdoc->last->flags & MDOC_VALID))  
                         mdoc->last->lastline = to->lastline -  
                             (mdoc->flags & MDOC_NEWLINE ? 1 : 0);  
                 /*                  /*
                  * Save the parent here, because we may delete the                   * Save the parent here, because we may delete the
                  * mdoc->last node in the post-validation phase and reset                   * mdoc->last node in the post-validation phase and reset
Line 578  blk_exp_close(MACRO_PROT_ARGS)
Line 575  blk_exp_close(MACRO_PROT_ARGS)
                 /* Remember the start of our own body. */                  /* Remember the start of our own body. */
   
                 if (n->type == MDOC_BODY && atok == n->tok) {                  if (n->type == MDOC_BODY && atok == n->tok) {
                         if (n->end == ENDBODY_NOT) {                          if (n->end == ENDBODY_NOT)
                                 body = n;                                  body = n;
                                 n->lastline = line;  
                         }  
                         continue;                          continue;
                 }                  }
   
Line 594  blk_exp_close(MACRO_PROT_ARGS)
Line 589  blk_exp_close(MACRO_PROT_ARGS)
                 }                  }
   
                 if (atok == n->tok) {                  if (atok == n->tok) {
                         n->lastline = line;  
                         assert(body);                          assert(body);
   
                         /*                          /*

Legend:
Removed from v.1.174  
changed lines
  Added in v.1.175

CVSweb