[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.75 and 1.76

version 1.75, 2009/09/20 19:25:06 version 1.76, 2009/09/21 14:07:07
Line 113  static int   termp_bd_pre(DECL_ARGS);
Line 113  static int   termp_bd_pre(DECL_ARGS);
 static  int       termp_bf_pre(DECL_ARGS);  static  int       termp_bf_pre(DECL_ARGS);
 static  int       termp_bold_pre(DECL_ARGS);  static  int       termp_bold_pre(DECL_ARGS);
 static  int       termp_bq_pre(DECL_ARGS);  static  int       termp_bq_pre(DECL_ARGS);
 static  int       termp_br_pre(DECL_ARGS);  
 static  int       termp_brq_pre(DECL_ARGS);  static  int       termp_brq_pre(DECL_ARGS);
 static  int       termp_bt_pre(DECL_ARGS);  static  int       termp_bt_pre(DECL_ARGS);
 static  int       termp_cd_pre(DECL_ARGS);  static  int       termp_cd_pre(DECL_ARGS);
Line 133  static int   termp_nm_pre(DECL_ARGS);
Line 132  static int   termp_nm_pre(DECL_ARGS);
 static  int       termp_ns_pre(DECL_ARGS);  static  int       termp_ns_pre(DECL_ARGS);
 static  int       termp_op_pre(DECL_ARGS);  static  int       termp_op_pre(DECL_ARGS);
 static  int       termp_pf_pre(DECL_ARGS);  static  int       termp_pf_pre(DECL_ARGS);
 static  int       termp_pp_pre(DECL_ARGS);  
 static  int       termp_pq_pre(DECL_ARGS);  static  int       termp_pq_pre(DECL_ARGS);
 static  int       termp_qq_pre(DECL_ARGS);  static  int       termp_qq_pre(DECL_ARGS);
 static  int       termp_rs_pre(DECL_ARGS);  static  int       termp_rs_pre(DECL_ARGS);
Line 155  static const struct termact termacts[MDOC_MAX] = {
Line 153  static const struct termact termacts[MDOC_MAX] = {
         { NULL, NULL }, /* Os */          { NULL, NULL }, /* Os */
         { termp_sh_pre, termp_sh_post }, /* Sh */          { termp_sh_pre, termp_sh_post }, /* Sh */
         { termp_ss_pre, termp_ss_post }, /* Ss */          { termp_ss_pre, termp_ss_post }, /* Ss */
         { termp_pp_pre, NULL }, /* Pp */          { termp_sp_pre, NULL }, /* Pp */
         { termp_d1_pre, termp_d1_post }, /* D1 */          { termp_d1_pre, termp_d1_post }, /* D1 */
         { termp_d1_pre, termp_d1_post }, /* Dl */          { termp_d1_pre, termp_d1_post }, /* Dl */
         { termp_bd_pre, termp_bd_post }, /* Bd */          { termp_bd_pre, termp_bd_post }, /* Bd */
Line 256  static const struct termact termacts[MDOC_MAX] = {
Line 254  static const struct termact termacts[MDOC_MAX] = {
         { NULL, NULL }, /* Fr */          { NULL, NULL }, /* Fr */
         { termp_ud_pre, NULL }, /* Ud */          { termp_ud_pre, NULL }, /* Ud */
         { NULL, termp_lb_post }, /* Lb */          { NULL, termp_lb_post }, /* Lb */
         { termp_pp_pre, NULL }, /* Lp */          { termp_sp_pre, NULL }, /* Lp */
         { termp_lk_pre, NULL }, /* Lk */          { termp_lk_pre, NULL }, /* Lk */
         { termp_under_pre, NULL }, /* Mt */          { termp_under_pre, NULL }, /* Mt */
         { termp_brq_pre, termp_brq_post }, /* Brq */          { termp_brq_pre, termp_brq_post }, /* Brq */
Line 267  static const struct termact termacts[MDOC_MAX] = {
Line 265  static const struct termact termacts[MDOC_MAX] = {
         { NULL, NULL }, /* En */          { NULL, NULL }, /* En */
         { termp_xx_pre, NULL }, /* Dx */          { termp_xx_pre, NULL }, /* Dx */
         { NULL, NULL }, /* %Q */          { NULL, NULL }, /* %Q */
         { termp_br_pre, NULL }, /* br */          { termp_sp_pre, NULL }, /* br */
         { termp_sp_pre, NULL }, /* sp */          { termp_sp_pre, NULL }, /* sp */
 };  };
   
Line 1163  termp_ns_pre(DECL_ARGS)
Line 1161  termp_ns_pre(DECL_ARGS)
   
 /* ARGSUSED */  /* ARGSUSED */
 static int  static int
 termp_pp_pre(DECL_ARGS)  
 {  
   
         term_vspace(p);  
         return(1);  
 }  
   
   
 /* ARGSUSED */  
 static int  
 termp_rs_pre(DECL_ARGS)  termp_rs_pre(DECL_ARGS)
 {  {
   
Line 1878  termp_sp_pre(DECL_ARGS)
Line 1866  termp_sp_pre(DECL_ARGS)
 {  {
         int              i, len;          int              i, len;
   
         if (NULL == node->child) {          switch (node->type) {
                 term_vspace(p);          case (MDOC_sp):
                 return(0);                  len = node->child ? atoi(node->child->string) : 1;
                   break;
           case (MDOC_br):
                   len = 0;
                   break;
           default:
                   len = 1;
                   break;
         }          }
   
         len = atoi(node->child->string);  
         if (0 == len)          if (0 == len)
                 term_newln(p);                  term_newln(p);
         for (i = 0; i < len; i++)          for (i = 0; i < len; i++)
                 term_vspace(p);                  term_vspace(p);
   
         return(0);          return(0);
 }  
   
   
 /* ARGSUSED */  
 static int  
 termp_br_pre(DECL_ARGS)  
 {  
   
         term_newln(p);  
         return(1);  
 }  }
   
   

Legend:
Removed from v.1.75  
changed lines
  Added in v.1.76

CVSweb