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

Diff for /mandoc/man_macro.c between version 1.112 and 1.114

version 1.112, 2015/10/06 18:32:19 version 1.114, 2016/01/08 17:48:09
Line 130  man_unscope(struct roff_man *man, const struct roff_no
Line 130  man_unscope(struct roff_man *man, const struct roff_no
   
                 man->last = n;                  man->last = n;
                 n = n->parent;                  n = n->parent;
                 man_valid_post(man);                  man->last->flags |= MAN_VALID;
         }          }
   
         /*          /*
Line 157  rew_scope(struct roff_man *man, int tok)
Line 157  rew_scope(struct roff_man *man, int tok)
         /* Preserve empty paragraphs before RS. */          /* Preserve empty paragraphs before RS. */
   
         n = man->last;          n = man->last;
         if (tok == MAN_RS && n->nchild == 0 &&          if (tok == MAN_RS && n->child == NULL &&
             (n->tok == MAN_P || n->tok == MAN_PP || n->tok == MAN_LP))              (n->tok == MAN_P || n->tok == MAN_PP || n->tok == MAN_LP))
                 return;                  return;
   
Line 379  in_line_eoln(MACRO_PROT_ARGS)
Line 379  in_line_eoln(MACRO_PROT_ARGS)
         assert(man->last->type != ROFFT_ROOT);          assert(man->last->type != ROFFT_ROOT);
         man->next = ROFF_NEXT_SIBLING;          man->next = ROFF_NEXT_SIBLING;
   
         /*          /* Rewind our element scope. */
          * Rewind our element scope.  Note that when TH is pruned, we'll  
          * be back at the root, so make sure that we don't clobber as  
          * its sibling.  
          */  
   
         for ( ; man->last; man->last = man->last->parent) {          for ( ; man->last; man->last = man->last->parent) {
                   man_state(man, man->last);
                 if (man->last == n)                  if (man->last == n)
                         break;                          break;
                 if (man->last->type == ROFFT_ROOT)  
                         break;  
                 man_valid_post(man);  
         }          }
   
         assert(man->last);  
   
         /*  
          * Same here regarding whether we're back at the root.  
          */  
   
         if (man->last->type != ROFFT_ROOT)  
                 man_valid_post(man);  
 }  }
   
 void  void
Line 408  man_endparse(struct roff_man *man)
Line 393  man_endparse(struct roff_man *man)
 {  {
   
         man_unscope(man, man->first);          man_unscope(man, man->first);
           man->flags &= ~MAN_LITERAL;
 }  }
   
 static int  static int

Legend:
Removed from v.1.112  
changed lines
  Added in v.1.114

CVSweb