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

Diff for /src/usr.bin/mandoc/man_macro.c between version 1.26 and 1.27

version 1.26, 2011/01/04 22:28:17 version 1.27, 2011/01/16 19:27:25
Line 103 
Line 103 
  * will be used if an explicit block scope is being closed out.   * will be used if an explicit block scope is being closed out.
  */   */
 int  int
 man_unscope(struct man *m, const struct man_node *n,  man_unscope(struct man *m, const struct man_node *to,
                 enum mandocerr er)                  enum mandocerr er)
 {  {
           struct man_node *n;
   
         assert(n);          assert(to);
   
         /* LINTED */          /* LINTED */
         while (m->last != n) {          while (m->last != to) {
                   /*
                    * Save the parent here, because we may delete the
                    * m->last node in the post-validation phase and reset
                    * it to m->last->parent, causing a step in the closing
                    * out to be lost.
                    */
                   n = m->last->parent;
                 if ( ! rew_warn(m, m->last, er))                  if ( ! rew_warn(m, m->last, er))
                         return(0);                          return(0);
                 if ( ! man_valid_post(m))                  if ( ! man_valid_post(m))
                         return(0);                          return(0);
                 m->last = m->last->parent;                  m->last = n;
                 assert(m->last);                  assert(m->last);
         }          }
   

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27