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

Diff for /mandoc/term.c between version 1.14 and 1.15

version 1.14, 2009/02/24 14:52:55 version 1.15, 2009/02/24 15:01:15
Line 103  DECL_POST(name);
Line 103  DECL_POST(name);
 DECL_PREPOST(termp_aq);  DECL_PREPOST(termp_aq);
 DECL_PREPOST(termp_ar);  DECL_PREPOST(termp_ar);
 DECL_PREPOST(termp_bd);  DECL_PREPOST(termp_bd);
   DECL_PREPOST(termp_bq);
 DECL_PREPOST(termp_cd);  DECL_PREPOST(termp_cd);
 DECL_PREPOST(termp_cm);  DECL_PREPOST(termp_cm);
 DECL_PREPOST(termp_d1);  DECL_PREPOST(termp_d1);
Line 120  DECL_PREPOST(termp_nm);
Line 121  DECL_PREPOST(termp_nm);
 DECL_PREPOST(termp_op);  DECL_PREPOST(termp_op);
 DECL_PREPOST(termp_pa);  DECL_PREPOST(termp_pa);
 DECL_PREPOST(termp_pf);  DECL_PREPOST(termp_pf);
 DECL_PREPOST(termp_qo);  DECL_PREPOST(termp_pq);
 DECL_PREPOST(termp_qq);  DECL_PREPOST(termp_qq);
 DECL_PREPOST(termp_sh);  DECL_PREPOST(termp_sh);
 DECL_PREPOST(termp_ss);  DECL_PREPOST(termp_ss);
Line 130  DECL_PREPOST(termp_va);
Line 131  DECL_PREPOST(termp_va);
 DECL_PREPOST(termp_vt);  DECL_PREPOST(termp_vt);
   
 DECL_PRE(termp_at);  DECL_PRE(termp_at);
   DECL_PRE(termp_bsx);
 DECL_PRE(termp_bx);  DECL_PRE(termp_bx);
 DECL_PRE(termp_ex);  DECL_PRE(termp_ex);
 DECL_PRE(termp_nd);  DECL_PRE(termp_nd);
Line 203  const struct termact __termacts[MDOC_MAX] = {
Line 205  const struct termact __termacts[MDOC_MAX] = {
         { termp_at_pre, NULL }, /* At */          { termp_at_pre, NULL }, /* At */
         { NULL, NULL }, /* Bc */          { NULL, NULL }, /* Bc */
         { NULL, NULL }, /* Bf */          { NULL, NULL }, /* Bf */
         { NULL, NULL }, /* Bo */          { termp_bq_pre, termp_bq_post }, /* Bo */
         { NULL, NULL }, /* Bq */          { termp_bq_pre, termp_bq_post }, /* Bq */
         { NULL, NULL }, /* Bsx */          { termp_bsx_pre, NULL }, /* Bsx */
         { termp_bx_pre, NULL }, /* Bx */          { termp_bx_pre, NULL }, /* Bx */
         { NULL, NULL }, /* Db */          { NULL, NULL }, /* Db */
         { NULL, NULL }, /* Dc */          { NULL, NULL }, /* Dc */
         { NULL, NULL }, /* Do */          { termp_dq_pre, termp_dq_post }, /* Do */
         { termp_dq_pre, termp_dq_post }, /* Dq */          { termp_dq_pre, termp_dq_post }, /* Dq */
         { NULL, NULL }, /* Ec */          { NULL, NULL }, /* Ec */
         { NULL, NULL }, /* Ef */          { NULL, NULL }, /* Ef */
Line 223  const struct termact __termacts[MDOC_MAX] = {
Line 225  const struct termact __termacts[MDOC_MAX] = {
         { termp_ox_pre, NULL }, /* Ox */          { termp_ox_pre, NULL }, /* Ox */
         { NULL, NULL }, /* Pc */          { NULL, NULL }, /* Pc */
         { termp_pf_pre, termp_pf_post }, /* Pf */          { termp_pf_pre, termp_pf_post }, /* Pf */
         { NULL, NULL }, /* Po */          { termp_pq_pre, termp_pq_post }, /* Po */
         { NULL, NULL }, /* Pq */          { termp_pq_pre, termp_pq_post }, /* Pq */
         { NULL, NULL }, /* Qc */          { NULL, NULL }, /* Qc */
         { NULL, NULL }, /* Ql */          { NULL, NULL }, /* Ql */
         { termp_qo_pre, termp_qo_post }, /* Qo */          { termp_qq_pre, termp_qq_post }, /* Qo */
         { termp_qq_pre, termp_qq_post }, /* Qq */          { termp_qq_pre, termp_qq_post }, /* Qq */
         { NULL, NULL }, /* Re */          { NULL, NULL }, /* Re */
         { NULL, NULL }, /* Rs */          { NULL, NULL }, /* Rs */
         { NULL, NULL }, /* Sc */          { NULL, NULL }, /* Sc */
         { NULL, NULL }, /* So */          { termp_sq_pre, termp_sq_post }, /* So */
         { termp_sq_pre, termp_sq_post }, /* Sq */          { termp_sq_pre, termp_sq_post }, /* Sq */
         { NULL, NULL }, /* Sm */          { NULL, NULL }, /* Sm */
         { termp_sx_pre, termp_sx_post }, /* Sx */          { termp_sx_pre, termp_sx_post }, /* Sx */
Line 1078  termp_qq_post(DECL_ARGS)
Line 1080  termp_qq_post(DECL_ARGS)
   
 /* ARGSUSED */  /* ARGSUSED */
 static int  static int
   termp_bsx_pre(DECL_ARGS)
   {
   
           word(p, "BSDI BSD/OS");
           return(1);
   }
   
   
   /* ARGSUSED */
   static int
 termp_bx_pre(DECL_ARGS)  termp_bx_pre(DECL_ARGS)
 {  {
   
Line 1208  termp_pa_post(DECL_ARGS)
Line 1220  termp_pa_post(DECL_ARGS)
   
 /* ARGSUSED */  /* ARGSUSED */
 static int  static int
 termp_qo_pre(DECL_ARGS)  
 {  
   
         if (MDOC_BODY != node->type)  
                 return(1);  
         word(p, "\"");  
         p->flags |= TERMP_NOSPACE;  
         return(1);  
 }  
   
   
 /* ARGSUSED */  
 static void  
 termp_qo_post(DECL_ARGS)  
 {  
   
         if (MDOC_BODY != node->type)  
                 return;  
         p->flags |= TERMP_NOSPACE;  
         word(p, "\"");  
 }  
   
   
 /* ARGSUSED */  
 static int  
 termp_em_pre(DECL_ARGS)  termp_em_pre(DECL_ARGS)
 {  {
   
Line 1341  termp_at_pre(DECL_ARGS)
Line 1328  termp_at_pre(DECL_ARGS)
         word(p, mdoc_att2a(c));          word(p, mdoc_att2a(c));
         return(0);          return(0);
 }  }
   
   
   /* ARGSUSED */
   static int
   termp_bq_pre(DECL_ARGS)
   {
   
           if (MDOC_BODY != node->type)
                   return(1);
           word(p, "[");
           p->flags |= TERMP_NOSPACE;
           return(1);
   }
   
   
   /* ARGSUSED */
   static void
   termp_bq_post(DECL_ARGS)
   {
   
           if (MDOC_BODY != node->type)
                   return;
           p->flags |= TERMP_NOSPACE;
           word(p, "]");
   }
   
   
   /* ARGSUSED */
   static int
   termp_pq_pre(DECL_ARGS)
   {
   
           if (MDOC_BODY != node->type)
                   return(1);
           word(p, "(");
           p->flags |= TERMP_NOSPACE;
           return(1);
   }
   
   
   /* ARGSUSED */
   static void
   termp_pq_post(DECL_ARGS)
   {
   
           if (MDOC_BODY != node->type)
                   return;
           p->flags |= TERMP_NOSPACE;
           word(p, ")");
   }
   
   

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

CVSweb