[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.38 and 1.41

version 1.38, 2010/03/27 10:04:56 version 1.41, 2010/03/29 04:52:14
Line 28 
Line 28 
 enum    rew {  enum    rew {
         REW_REWIND,          REW_REWIND,
         REW_NOHALT,          REW_NOHALT,
         REW_HALT,          REW_HALT
 };  };
   
 static  int              blk_close(MACRO_PROT_ARGS);  static  int              blk_close(MACRO_PROT_ARGS);
Line 328  blk_dotted(MACRO_PROT_ARGS)
Line 328  blk_dotted(MACRO_PROT_ARGS)
                 break;                  break;
         }          }
   
           /*
            * Restore flags set when we got here and also stipulate that we
            * don't post-process the line when exiting the macro op
            * function in man_pmacro().
            */
           m->flags = m->svflags;
           m->flags |= MAN_ILINE;
   
         return(1);          return(1);
 }  }
   
Line 385  blk_exp(MACRO_PROT_ARGS)
Line 393  blk_exp(MACRO_PROT_ARGS)
                         return(0);                          return(0);
                 if ( ! rew_scope(MAN_BLOCK, m, tok))                  if ( ! rew_scope(MAN_BLOCK, m, tok))
                         return(0);                          return(0);
           } else {
                   /*
                    * Save our state; we restore it when exiting from the
                    * roff instruction block.
                    */
                   m->svflags = m->flags;
                   m->flags = 0;
         }          }
   
         if ( ! man_block_alloc(m, line, ppos, tok))          if ( ! man_block_alloc(m, line, ppos, tok))
Line 559  in_line_eoln(MACRO_PROT_ARGS)
Line 574  in_line_eoln(MACRO_PROT_ARGS)
 int  int
 man_macroend(struct man *m)  man_macroend(struct man *m)
 {  {
         struct man_node *n;  
   
         n = MAN_VALID & m->last->flags ?  
                 m->last->parent : m->last;  
   
         return(man_unscope(m, m->first, WEXITSCOPE));          return(man_unscope(m, m->first, WEXITSCOPE));
 }  }

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.41

CVSweb