[BACK]Return to mdoc_macro.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/mdoc_macro.c between version 1.60 and 1.61

version 1.60, 2010/12/01 22:02:29 version 1.61, 2010/12/21 23:46:18
Line 250 
Line 250 
 static int  static int
 rew_last(struct mdoc *mdoc, const struct mdoc_node *to)  rew_last(struct mdoc *mdoc, const struct mdoc_node *to)
 {  {
           struct mdoc_node *n;
   
         assert(to);          assert(to);
         mdoc->next = MDOC_NEXT_SIBLING;          mdoc->next = MDOC_NEXT_SIBLING;
Line 258 
Line 259 
         while (mdoc->last != to) {          while (mdoc->last != to) {
                 if ( ! mdoc_valid_post(mdoc))                  if ( ! mdoc_valid_post(mdoc))
                         return(0);                          return(0);
                   n = mdoc->last;
                 mdoc->last = mdoc->last->parent;                  mdoc->last = mdoc->last->parent;
                 assert(mdoc->last);                  assert(mdoc->last);
                   mdoc->last->last = n;
         }          }
   
         return(mdoc_valid_post(mdoc));          return(mdoc_valid_post(mdoc));

Legend:
Removed from v.1.60  
changed lines
  Added in v.1.61