[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.34 and 1.37

version 1.34, 2009/07/12 20:07:04 version 1.37, 2009/07/12 20:50:08
Line 127  static int   termp__t_pre(DECL_ARGS);
Line 127  static int   termp__t_pre(DECL_ARGS);
 static  int       termp_ap_pre(DECL_ARGS);  static  int       termp_ap_pre(DECL_ARGS);
 static  int       termp_aq_pre(DECL_ARGS);  static  int       termp_aq_pre(DECL_ARGS);
 static  int       termp_ar_pre(DECL_ARGS);  static  int       termp_ar_pre(DECL_ARGS);
 static  int       termp_at_pre(DECL_ARGS);  
 static  int       termp_bd_pre(DECL_ARGS);  static  int       termp_bd_pre(DECL_ARGS);
 static  int       termp_bf_pre(DECL_ARGS);  static  int       termp_bf_pre(DECL_ARGS);
 static  int       termp_bq_pre(DECL_ARGS);  static  int       termp_bq_pre(DECL_ARGS);
Line 148  static int   termp_ft_pre(DECL_ARGS);
Line 147  static int   termp_ft_pre(DECL_ARGS);
 static  int       termp_ic_pre(DECL_ARGS);  static  int       termp_ic_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_lb_pre(DECL_ARGS);  
 static  int       termp_lk_pre(DECL_ARGS);  static  int       termp_lk_pre(DECL_ARGS);
 static  int       termp_ms_pre(DECL_ARGS);  static  int       termp_ms_pre(DECL_ARGS);
 static  int       termp_mt_pre(DECL_ARGS);  static  int       termp_mt_pre(DECL_ARGS);
Line 167  static int   termp_sh_pre(DECL_ARGS);
Line 165  static int   termp_sh_pre(DECL_ARGS);
 static  int       termp_sm_pre(DECL_ARGS);  static  int       termp_sm_pre(DECL_ARGS);
 static  int       termp_sq_pre(DECL_ARGS);  static  int       termp_sq_pre(DECL_ARGS);
 static  int       termp_ss_pre(DECL_ARGS);  static  int       termp_ss_pre(DECL_ARGS);
 static  int       termp_st_pre(DECL_ARGS);  
 static  int       termp_sx_pre(DECL_ARGS);  static  int       termp_sx_pre(DECL_ARGS);
 static  int       termp_sy_pre(DECL_ARGS);  static  int       termp_sy_pre(DECL_ARGS);
 static  int       termp_ud_pre(DECL_ARGS);  static  int       termp_ud_pre(DECL_ARGS);
Line 214  static const struct termact termacts[MDOC_MAX] = {
Line 211  static const struct termact termacts[MDOC_MAX] = {
         { NULL, NULL }, /* Ot */          { NULL, NULL }, /* Ot */
         { termp_pa_pre, NULL }, /* Pa */          { termp_pa_pre, NULL }, /* Pa */
         { termp_rv_pre, NULL }, /* Rv */          { termp_rv_pre, NULL }, /* Rv */
         { termp_st_pre, NULL }, /* St */          { NULL, NULL }, /* St */
         { termp_va_pre, NULL }, /* Va */          { termp_va_pre, NULL }, /* Va */
         { termp_vt_pre, termp_vt_post }, /* Vt */          { termp_vt_pre, termp_vt_post }, /* Vt */
         { termp_xr_pre, NULL }, /* Xr */          { termp_xr_pre, NULL }, /* Xr */
Line 232  static const struct termact termacts[MDOC_MAX] = {
Line 229  static const struct termact termacts[MDOC_MAX] = {
         { NULL, NULL }, /* Ac */          { NULL, NULL }, /* Ac */
         { termp_aq_pre, termp_aq_post }, /* Ao */          { termp_aq_pre, termp_aq_post }, /* Ao */
         { termp_aq_pre, termp_aq_post }, /* Aq */          { termp_aq_pre, termp_aq_post }, /* Aq */
         { termp_at_pre, NULL }, /* At */          { NULL, NULL }, /* At */
         { NULL, NULL }, /* Bc */          { NULL, NULL }, /* Bc */
         { termp_bf_pre, NULL }, /* Bf */          { termp_bf_pre, NULL }, /* Bf */
         { termp_bq_pre, termp_bq_post }, /* Bo */          { termp_bq_pre, termp_bq_post }, /* Bo */
Line 283  static const struct termact termacts[MDOC_MAX] = {
Line 280  static const struct termact termacts[MDOC_MAX] = {
         { NULL, NULL }, /* Hf */          { NULL, NULL }, /* Hf */
         { NULL, NULL }, /* Fr */          { NULL, NULL }, /* Fr */
         { termp_ud_pre, NULL }, /* Ud */          { termp_ud_pre, NULL }, /* Ud */
         { termp_lb_pre, termp_lb_post }, /* Lb */          { NULL, termp_lb_post }, /* Lb */
         { termp_pp_pre, NULL }, /* Lp */          { termp_pp_pre, NULL }, /* Lp */
         { termp_lk_pre, NULL }, /* Lk */          { termp_lk_pre, NULL }, /* Lk */
         { termp_mt_pre, NULL }, /* Mt */          { termp_mt_pre, NULL }, /* Mt */
Line 1043  termp_pp_pre(DECL_ARGS)
Line 1040  termp_pp_pre(DECL_ARGS)
   
 /* ARGSUSED */  /* ARGSUSED */
 static int  static int
 termp_st_pre(DECL_ARGS)  
 {  
         const char      *cp;  
   
         if (node->child && (cp = mdoc_a2st(node->child->string)))  
                 term_word(p, cp);  
         return(0);  
 }  
   
   
 /* ARGSUSED */  
 static int  
 termp_rs_pre(DECL_ARGS)  termp_rs_pre(DECL_ARGS)
 {  {
   
Line 1298  termp_bt_pre(DECL_ARGS)
Line 1283  termp_bt_pre(DECL_ARGS)
   
   
 /* ARGSUSED */  /* ARGSUSED */
 static int  
 termp_lb_pre(DECL_ARGS)  
 {  
         const char      *lb;  
   
         assert(node->child && MDOC_TEXT == node->child->type);  
         lb = mdoc_a2lib(node->child->string);  
         if (lb) {  
                 term_word(p, lb);  
                 return(0);  
         }  
         term_word(p, "library");  
         return(1);  
 }  
   
   
 /* ARGSUSED */  
 static void  static void
 termp_lb_post(DECL_ARGS)  termp_lb_post(DECL_ARGS)
 {  {
Line 1833  termp_in_post(DECL_ARGS)
Line 1801  termp_in_post(DECL_ARGS)
          */           */
         if (node->next && MDOC_In != node->next->tok)          if (node->next && MDOC_In != node->next->tok)
                 term_vspace(p);                  term_vspace(p);
 }  
   
   
 /* ARGSUSED */  
 static int  
 termp_at_pre(DECL_ARGS)  
 {  
         const char      *att;  
   
         att = NULL;  
   
         if (node->child)  
                 att = mdoc_a2att(node->child->string);  
         if (NULL == att)  
                 att = "AT&T UNIX";  
   
         term_word(p, att);  
         return(0);  
 }  }
   
   

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.37

CVSweb