[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.29 and 1.30

version 1.29, 2009/07/12 17:45:17 version 1.30, 2009/07/12 17:49:32
Line 86  const int ttypes[TTYPE_NMAX] = {
Line 86  const int ttypes[TTYPE_NMAX] = {
  */   */
 struct  termpair {  struct  termpair {
         struct termpair  *ppair;          struct termpair  *ppair;
         int               flag;         /* Whether being used. */          int               flag;         /* Cross-body struct termp:flags. */
         size_t            rmargin;      /* Right margin. */  
         int               count;        /* Enum count. */          int               count;        /* Enum count. */
 };  };
   
Line 346  print_node(DECL_ARGS)
Line 345  print_node(DECL_ARGS)
 {  {
         int              dochild;          int              dochild;
         struct termpair  npair;          struct termpair  npair;
         size_t           offset;          size_t           offset, rmargin;
   
         /* Pre-processing. */  
   
         dochild = 1;          dochild = 1;
         offset = p->offset;          offset = p->offset;
           rmargin = p->rmargin;
   
         npair.ppair = pair;          npair.ppair = pair;
         npair.rmargin = 0;  
         npair.flag = 0;          npair.flag = 0;
         npair.count = 0;          npair.count = 0;
   
Line 379  print_node(DECL_ARGS)
Line 376  print_node(DECL_ARGS)
                         (*termacts[node->tok].post)(p, &npair, meta, node);                          (*termacts[node->tok].post)(p, &npair, meta, node);
   
         p->offset = offset;          p->offset = offset;
           p->rmargin = rmargin;
         p->flags &= ~npair.flag;          p->flags &= ~npair.flag;
 }  }
   
Line 708  termp_it_pre(DECL_ARGS)
Line 706  termp_it_pre(DECL_ARGS)
   
         /* Save parent attributes. */          /* Save parent attributes. */
   
         pair->rmargin = p->rmargin;  
         pair->flag = p->flags;          pair->flag = p->flags;
   
         /* Get list width and offset. */          /* Get list width and offset. */
Line 971  termp_it_post(DECL_ARGS)
Line 968  termp_it_post(DECL_ARGS)
                 break;                  break;
         }          }
   
         p->rmargin = pair->rmargin;  
         p->flags = pair->flag;          p->flags = pair->flag;
 }  }
   
Line 1125  termp_nd_pre(DECL_ARGS)
Line 1121  termp_nd_pre(DECL_ARGS)
   
         if (MDOC_BODY != node->type)          if (MDOC_BODY != node->type)
                 return(1);                  return(1);
   
         /*          /*
          * XXX: signed off by jmc@openbsd.org.  This technically           * XXX: signed off by jmc@openbsd.org.  This technically
          * produces a minus sign after the Nd, which is wrong, but is           * produces a minus sign after the Nd, which is wrong, but is

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

CVSweb