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

Diff for /src/usr.bin/mandoc/mdoc_term.c between version 1.252 and 1.253

version 1.252, 2017/05/05 02:06:17 version 1.253, 2017/05/05 13:17:04
Line 104 
Line 104 
 static  int       termp_in_pre(DECL_ARGS);  static  int       termp_in_pre(DECL_ARGS);
 static  int       termp_it_pre(DECL_ARGS);  static  int       termp_it_pre(DECL_ARGS);
 static  int       termp_li_pre(DECL_ARGS);  static  int       termp_li_pre(DECL_ARGS);
 static  int       termp_ll_pre(DECL_ARGS);  
 static  int       termp_lk_pre(DECL_ARGS);  static  int       termp_lk_pre(DECL_ARGS);
 static  int       termp_nd_pre(DECL_ARGS);  static  int       termp_nd_pre(DECL_ARGS);
 static  int       termp_nm_pre(DECL_ARGS);  static  int       termp_nm_pre(DECL_ARGS);
Line 245 
Line 244 
         { termp_sp_pre, NULL }, /* sp */          { termp_sp_pre, NULL }, /* sp */
         { NULL, termp____post }, /* %U */          { NULL, termp____post }, /* %U */
         { NULL, NULL }, /* Ta */          { NULL, NULL }, /* Ta */
         { termp_ll_pre, NULL }, /* ll */  
 };  };
 static  const struct termact *const termacts = __termacts - MDOC_Dd;  static  const struct termact *const termacts = __termacts - MDOC_Dd;
   
Line 364 
Line 362 
         default:          default:
                 if (n->tok < ROFF_MAX) {                  if (n->tok < ROFF_MAX) {
                         roff_term_pre(p, n);                          roff_term_pre(p, n);
                         chld = 0;                          return;
                         break;  
                 }                  }
                 assert(n->tok >= MDOC_Dd && n->tok < MDOC_MAX);                  assert(n->tok >= MDOC_Dd && n->tok < MDOC_MAX);
                 if (termacts[n->tok].pre != NULL &&                  if (termacts[n->tok].pre != NULL &&
Line 389 
Line 386 
         case ROFFT_EQN:          case ROFFT_EQN:
                 break;                  break;
         default:          default:
                 if (n->tok < ROFF_MAX ||                  if (termacts[n->tok].post == NULL || n->flags & NODE_ENDED)
                     termacts[n->tok].post == NULL ||  
                     n->flags & NODE_ENDED)  
                         break;                          break;
                 (void)(*termacts[n->tok].post)(p, &npair, meta, n);                  (void)(*termacts[n->tok].post)(p, &npair, meta, n);
   
Line 408 
Line 403 
         if (NODE_EOS & n->flags)          if (NODE_EOS & n->flags)
                 p->flags |= TERMP_SENTENCE;                  p->flags |= TERMP_SENTENCE;
   
         if (MDOC_ll != n->tok) {          p->offset = offset;
                 p->offset = offset;          p->rmargin = rmargin;
                 p->rmargin = rmargin;  
         }  
 }  }
   
 static void  static void
Line 601 
Line 594 
         term_vspace(p);          term_vspace(p);
 }  }
   
   
 static int  
 termp_ll_pre(DECL_ARGS)  
 {  
   
         term_setwidth(p, n->child != NULL ? n->child->string : NULL);  
         return 0;  
 }  
   
 static int  static int
 termp_it_pre(DECL_ARGS)  termp_it_pre(DECL_ARGS)

Legend:
Removed from v.1.252  
changed lines
  Added in v.1.253