[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.109 and 1.112

version 1.109, 2010/01/01 18:33:51 version 1.112, 2010/03/29 19:28:04
Line 132  static int   termp_sq_pre(DECL_ARGS);
Line 132  static int   termp_sq_pre(DECL_ARGS);
 static  int       termp_ss_pre(DECL_ARGS);  static  int       termp_ss_pre(DECL_ARGS);
 static  int       termp_under_pre(DECL_ARGS);  static  int       termp_under_pre(DECL_ARGS);
 static  int       termp_ud_pre(DECL_ARGS);  static  int       termp_ud_pre(DECL_ARGS);
   static  int       termp_vt_pre(DECL_ARGS);
 static  int       termp_xr_pre(DECL_ARGS);  static  int       termp_xr_pre(DECL_ARGS);
 static  int       termp_xx_pre(DECL_ARGS);  static  int       termp_xx_pre(DECL_ARGS);
   
Line 175  static const struct termact termacts[MDOC_MAX] = {
Line 176  static const struct termact termacts[MDOC_MAX] = {
         { termp_rv_pre, NULL }, /* Rv */          { termp_rv_pre, NULL }, /* Rv */
         { NULL, NULL }, /* St */          { NULL, NULL }, /* St */
         { termp_under_pre, NULL }, /* Va */          { termp_under_pre, NULL }, /* Va */
         { termp_under_pre, termp_vt_post }, /* Vt */          { termp_vt_pre, termp_vt_post }, /* Vt */
         { termp_xr_pre, NULL }, /* Xr */          { termp_xr_pre, NULL }, /* Xr */
         { NULL, termp____post }, /* %A */          { NULL, termp____post }, /* %A */
         { termp_under_pre, termp____post }, /* %B */          { termp_under_pre, termp____post }, /* %B */
Line 202  static const struct termact termacts[MDOC_MAX] = {
Line 203  static const struct termact termacts[MDOC_MAX] = {
         { NULL, NULL }, /* Dc */          { NULL, NULL }, /* Dc */
         { termp_dq_pre, termp_dq_post }, /* 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 */ /* FIXME: no space */
         { NULL, NULL }, /* Ef */          { NULL, NULL }, /* Ef */
         { termp_under_pre, NULL }, /* Em */          { termp_under_pre, NULL }, /* Em */
         { NULL, NULL }, /* Eo */          { NULL, NULL }, /* Eo */
Line 269  terminal_mdoc(void *arg, const struct mdoc *mdoc)
Line 270  terminal_mdoc(void *arg, const struct mdoc *mdoc)
   
         p = (struct termp *)arg;          p = (struct termp *)arg;
   
           p->overstep = 0;
           p->maxrmargin = 78;
   
         if (NULL == p->symtab)          if (NULL == p->symtab)
                 switch (p->enc) {                  switch (p->enc) {
                 case (TERMENC_ASCII):                  case (TERMENC_ASCII):
Line 1290  termp_xr_pre(DECL_ARGS)
Line 1294  termp_xr_pre(DECL_ARGS)
 }  }
   
   
   static int
   termp_vt_pre(DECL_ARGS)
   {
   
           if (MDOC_ELEM == n->type)
                   return(termp_under_pre(p, pair, m, n));
           else if (MDOC_HEAD == n->type)
                   return(0);
           else if (MDOC_BLOCK == n->type)
                   return(1);
   
           return(termp_under_pre(p, pair, m, n));
   }
   
   
 /* ARGSUSED */  /* ARGSUSED */
 static void  static void
 termp_vt_post(DECL_ARGS)  termp_vt_post(DECL_ARGS)
 {  {
   
         if (n->sec != SEC_SYNOPSIS)          if (MDOC_BLOCK != n->type)
                 return;                  return;
         if (n->next && MDOC_Vt == n->next->tok)          if (n->next && MDOC_Vt == n->next->tok)
                 term_newln(p);                  term_newln(p);

Legend:
Removed from v.1.109  
changed lines
  Added in v.1.112

CVSweb