[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.39 and 1.42

version 1.39, 2010/03/27 10:13:16 version 1.42, 2010/03/29 10:10:35
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 314  blk_dotted(MACRO_PROT_ARGS)
Line 314  blk_dotted(MACRO_PROT_ARGS)
         if ( ! rew_scope(MAN_BLOCK, m, ntok))          if ( ! rew_scope(MAN_BLOCK, m, ntok))
                 return(0);                  return(0);
   
         /*          /*
          * XXX: manually adjust our next-line status.  roff macros are,           * Restore flags set when we got here and also stipulate that we
          * for the moment, ignored, so we don't want to close out bodies           * don't post-process the line when exiting the macro op
          * and so on.           * function in man_pmacro().  See blk_exp().
          */           */
   
         switch (m->last->type) {          m->flags = m->svflags | MAN_ILINE;
         case (MAN_BODY):          m->next = m->svnext;
                 m->next = MAN_NEXT_CHILD;  
                 break;  
         default:  
                 break;  
         }  
   
         return(1);          return(1);
 }  }
   
Line 385  blk_exp(MACRO_PROT_ARGS)
Line 379  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 and next-scope indicator; we restore
                    * it when exiting from the roff instruction block.  See
                    * blk_dotted().
                    */
                   m->svflags = m->flags;
                   m->svnext = m->next;
   
                   /* Make sure we drop any line modes. */
                   m->flags = 0;
         }          }
   
         if ( ! man_block_alloc(m, line, ppos, tok))          if ( ! man_block_alloc(m, line, ppos, tok))

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.42

CVSweb