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

Diff for /mandoc/mdoc_term.c between version 1.353 and 1.354

version 1.353, 2017/05/05 02:06:19 version 1.354, 2017/05/05 13:17:55
Line 106  static int   termp_ft_pre(DECL_ARGS);
Line 106  static int   termp_ft_pre(DECL_ARGS);
 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 247  static const struct termact __termacts[MDOC_MAX - MDOC
Line 246  static const struct termact __termacts[MDOC_MAX - MDOC
         { 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 366  print_mdoc_node(DECL_ARGS)
Line 364  print_mdoc_node(DECL_ARGS)
         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 391  print_mdoc_node(DECL_ARGS)
Line 388  print_mdoc_node(DECL_ARGS)
         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 410  print_mdoc_node(DECL_ARGS)
Line 405  print_mdoc_node(DECL_ARGS)
         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 603  print_bvspace(struct termp *p,
Line 596  print_bvspace(struct termp *p,
         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.353  
changed lines
  Added in v.1.354

CVSweb