[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.243 and 1.244

version 1.243, 2012/07/11 16:57:43 version 1.244, 2012/11/16 17:16:55
Line 42  struct termpair {
Line 42  struct termpair {
 #define DECL_ARGS struct termp *p, \  #define DECL_ARGS struct termp *p, \
                   struct termpair *pair, \                    struct termpair *pair, \
                   const struct mdoc_meta *m, \                    const struct mdoc_meta *m, \
                   const struct mdoc_node *n                    struct mdoc_node *n
   
 struct  termact {  struct  termact {
         int     (*pre)(DECL_ARGS);          int     (*pre)(DECL_ARGS);
Line 293  static void
Line 293  static void
 print_mdoc_node(DECL_ARGS)  print_mdoc_node(DECL_ARGS)
 {  {
         int              chld;          int              chld;
         const void      *font;  
         struct termpair  npair;          struct termpair  npair;
         size_t           offset, rmargin;          size_t           offset, rmargin;
   
         chld = 1;          chld = 1;
         offset = p->offset;          offset = p->offset;
         rmargin = p->rmargin;          rmargin = p->rmargin;
         font = term_fontq(p);          n->prev_font = term_fontq(p);
   
         memset(&npair, 0, sizeof(struct termpair));          memset(&npair, 0, sizeof(struct termpair));
         npair.ppair = pair;          npair.ppair = pair;
Line 366  print_mdoc_node(DECL_ARGS)
Line 365  print_mdoc_node(DECL_ARGS)
         if (chld && n->child)          if (chld && n->child)
                 print_mdoc_nodelist(p, &npair, m, n->child);                  print_mdoc_nodelist(p, &npair, m, n->child);
   
         term_fontpopq(p, font);          term_fontpopq(p,
               (ENDBODY_NOT == n->end ? n : n->pending)->prev_font);
   
         switch (n->type) {          switch (n->type) {
         case (MDOC_TEXT):          case (MDOC_TEXT):
Line 1606  static int
Line 1606  static int
 termp_bd_pre(DECL_ARGS)  termp_bd_pre(DECL_ARGS)
 {  {
         size_t                   tabwidth, rm, rmax;          size_t                   tabwidth, rm, rmax;
         const struct mdoc_node  *nn;          struct mdoc_node        *nn;
   
         if (MDOC_BLOCK == n->type) {          if (MDOC_BLOCK == n->type) {
                 print_bvspace(p, n, n);                  print_bvspace(p, n, n);
Line 2075  termp_bf_pre(DECL_ARGS)
Line 2075  termp_bf_pre(DECL_ARGS)
   
         if (MDOC_HEAD == n->type)          if (MDOC_HEAD == n->type)
                 return(0);                  return(0);
         else if (MDOC_BLOCK != n->type)          else if (MDOC_BODY != n->type)
                 return(1);                  return(1);
   
         if (FONT_Em == n->norm->Bf.font)          if (FONT_Em == n->norm->Bf.font)

Legend:
Removed from v.1.243  
changed lines
  Added in v.1.244

CVSweb