[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.80 and 1.84

version 1.80, 2009/09/24 09:50:31 version 1.84, 2009/09/24 23:54:43
Line 106  static void   termp_sq_post(DECL_ARGS);
Line 106  static void   termp_sq_post(DECL_ARGS);
 static  void      termp_ss_post(DECL_ARGS);  static  void      termp_ss_post(DECL_ARGS);
 static  void      termp_vt_post(DECL_ARGS);  static  void      termp_vt_post(DECL_ARGS);
   
   static  int       termp__t_pre(DECL_ARGS);
 static  int       termp_an_pre(DECL_ARGS);  static  int       termp_an_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);
Line 189  static const struct termact termacts[MDOC_MAX] = {
Line 190  static const struct termact termacts[MDOC_MAX] = {
         { termp_under_pre, termp_vt_post }, /* Vt */          { termp_under_pre, termp_vt_post }, /* Vt */
         { termp_xr_pre, NULL }, /* Xr */          { termp_xr_pre, NULL }, /* Xr */
         { NULL, termp____post }, /* %A */          { NULL, termp____post }, /* %A */
         { NULL, termp____post }, /* %B */          { termp_under_pre, termp____post }, /* %B */
         { NULL, termp____post }, /* %D */          { NULL, termp____post }, /* %D */
         { NULL, termp____post }, /* %I */          { termp_under_pre, termp____post }, /* %I */
         { termp_under_pre, termp____post }, /* %J */          { termp_under_pre, termp____post }, /* %J */
         { NULL, termp____post }, /* %N */          { NULL, termp____post }, /* %N */
         { NULL, termp____post }, /* %O */          { NULL, termp____post }, /* %O */
         { NULL, termp____post }, /* %P */          { NULL, termp____post }, /* %P */
         { NULL, termp____post }, /* %R */          { NULL, termp____post }, /* %R */
         { termp_under_pre, termp____post }, /* %T */          { termp__t_pre, termp____post }, /* %T */
         { NULL, termp____post }, /* %V */          { NULL, termp____post }, /* %V */
         { NULL, NULL }, /* Ac */          { NULL, NULL }, /* Ac */
         { termp_aq_pre, termp_aq_post }, /* Ao */          { termp_aq_pre, termp_aq_post }, /* Ao */
Line 260  static const struct termact termacts[MDOC_MAX] = {
Line 261  static const struct termact termacts[MDOC_MAX] = {
         { termp_brq_pre, termp_brq_post }, /* Brq */          { termp_brq_pre, termp_brq_post }, /* Brq */
         { termp_brq_pre, termp_brq_post }, /* Bro */          { termp_brq_pre, termp_brq_post }, /* Bro */
         { NULL, NULL }, /* Brc */          { NULL, NULL }, /* Brc */
         { NULL, NULL }, /* %C */          { NULL, termp____post }, /* %C */
         { NULL, NULL }, /* Es */          { NULL, NULL }, /* Es */ /* TODO */
         { NULL, NULL }, /* En */          { NULL, NULL }, /* En */ /* TODO */
         { termp_xx_pre, NULL }, /* Dx */          { termp_xx_pre, NULL }, /* Dx */
         { NULL, NULL }, /* %Q */          { NULL, termp____post }, /* %Q */
         { termp_sp_pre, NULL }, /* br */          { termp_sp_pre, NULL }, /* br */
         { termp_sp_pre, NULL }, /* sp */          { termp_sp_pre, NULL }, /* sp */
 };  };
Line 1417  termp_bt_pre(DECL_ARGS)
Line 1418  termp_bt_pre(DECL_ARGS)
 {  {
   
         term_word(p, "is currently in beta test.");          term_word(p, "is currently in beta test.");
         return(1);          return(0);
 }  }
   
   
Line 1426  static void
Line 1427  static void
 termp_lb_post(DECL_ARGS)  termp_lb_post(DECL_ARGS)
 {  {
   
         term_newln(p);          if (SEC_LIBRARY == node->sec)
                   term_newln(p);
 }  }
   
   
Line 1518  termp_fn_pre(DECL_ARGS)
Line 1520  termp_fn_pre(DECL_ARGS)
 {  {
         const struct mdoc_node *n;          const struct mdoc_node *n;
   
         assert(node->child && MDOC_TEXT == node->child->type);  
   
         /* FIXME: can be "type funcname" "type varname"... */  
   
         p->bold++;          p->bold++;
         term_word(p, node->child->string);          term_word(p, node->child->string);
         p->bold--;          p->bold--;
Line 2068  termp____post(DECL_ARGS)
Line 2066  termp____post(DECL_ARGS)
 {  {
   
         p->flags |= TERMP_NOSPACE;          p->flags |= TERMP_NOSPACE;
           switch (node->tok) {
           case (MDOC__T):
                   term_word(p, "\\(rq");
                   p->flags |= TERMP_NOSPACE;
                   break;
           default:
                   break;
           }
         term_word(p, node->next ? "," : ".");          term_word(p, node->next ? "," : ".");
 }  }
   
Line 2107  termp_under_pre(DECL_ARGS)
Line 2113  termp_under_pre(DECL_ARGS)
 {  {
   
         p->under++;          p->under++;
           return(1);
   }
   
   
   /* ARGSUSED */
   static int
   termp__t_pre(DECL_ARGS)
   {
   
           term_word(p, "\\(lq");
           p->flags |= TERMP_NOSPACE;
         return(1);          return(1);
 }  }

Legend:
Removed from v.1.80  
changed lines
  Added in v.1.84

CVSweb