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

Diff for /mandoc/mdoc_state.c between version 1.11 and 1.14

version 1.11, 2018/12/14 01:18:26 version 1.14, 2018/12/31 07:46:07
Line 25 
Line 25 
 #include "roff.h"  #include "roff.h"
 #include "mdoc.h"  #include "mdoc.h"
 #include "libmandoc.h"  #include "libmandoc.h"
   #include "roff_int.h"
 #include "libmdoc.h"  #include "libmdoc.h"
   
 #define STATE_ARGS  struct roff_man *mdoc, struct roff_node *n  #define STATE_ARGS  struct roff_man *mdoc, struct roff_node *n
Line 178  mdoc_state(struct roff_man *mdoc, struct roff_node *n)
Line 179  mdoc_state(struct roff_man *mdoc, struct roff_node *n)
                 (*handler)(mdoc, n);                  (*handler)(mdoc, n);
 }  }
   
 void  
 mdoc_state_reset(struct roff_man *mdoc)  
 {  
   
         roff_setreg(mdoc->roff, "nS", 0, '=');  
         mdoc->flags = 0;  
 }  
   
 static void  static void
 state_bd(STATE_ARGS)  state_bd(STATE_ARGS)
 {  {
Line 235  state_dl(STATE_ARGS)
Line 228  state_dl(STATE_ARGS)
   
         switch (n->type) {          switch (n->type) {
         case ROFFT_HEAD:          case ROFFT_HEAD:
                 mdoc->flags |= MDOC_LITERAL;                  mdoc->flags |= ROFF_NOFILL;
                 break;                  break;
         case ROFFT_BODY:          case ROFFT_BODY:
                 mdoc->flags &= ~MDOC_LITERAL;                  mdoc->flags &= ~ROFF_NOFILL;
                 break;                  break;
         default:          default:
                 break;                  break;

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.14

CVSweb