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

Diff for /mandoc/tree.c between version 1.63 and 1.67

version 1.63, 2015/04/02 21:36:51 version 1.67, 2015/09/26 00:54:04
Line 32 
Line 32 
 #include "main.h"  #include "main.h"
   
 static  void    print_box(const struct eqn_box *, int);  static  void    print_box(const struct eqn_box *, int);
 static  void    print_man(const struct man_node *, int);  static  void    print_man(const struct roff_node *, int);
 static  void    print_mdoc(const struct mdoc_node *, int);  static  void    print_mdoc(const struct roff_node *, int);
 static  void    print_span(const struct tbl_span *, int);  static  void    print_span(const struct tbl_span *, int);
   
   
 void  void
 tree_mdoc(void *arg, const struct mdoc *mdoc)  tree_mdoc(void *arg, const struct roff_man *mdoc)
 {  {
   
         print_mdoc(mdoc_node(mdoc)->child, 0);          print_mdoc(mdoc->first->child, 0);
 }  }
   
 void  void
 tree_man(void *arg, const struct man *man)  tree_man(void *arg, const struct roff_man *man)
 {  {
   
         print_man(man_node(man)->child, 0);          print_man(man->first->child, 0);
 }  }
   
 static void  static void
 print_mdoc(const struct mdoc_node *n, int indent)  print_mdoc(const struct roff_node *n, int indent)
 {  {
         const char       *p, *t;          const char       *p, *t;
         int               i, j;          int               i, j;
Line 98  print_mdoc(const struct mdoc_node *n, int indent)
Line 98  print_mdoc(const struct mdoc_node *n, int indent)
                 break;                  break;
         default:          default:
                 abort();                  abort();
                 /* NOTREACHED */  
         }          }
   
         switch (n->type) {          switch (n->type) {
Line 138  print_mdoc(const struct mdoc_node *n, int indent)
Line 137  print_mdoc(const struct mdoc_node *n, int indent)
                 break;                  break;
         default:          default:
                 abort();                  abort();
                 /* NOTREACHED */  
         }          }
   
         if (n->span) {          if (n->span) {
Line 176  print_mdoc(const struct mdoc_node *n, int indent)
Line 174  print_mdoc(const struct mdoc_node *n, int indent)
 }  }
   
 static void  static void
 print_man(const struct man_node *n, int indent)  print_man(const struct roff_node *n, int indent)
 {  {
         const char       *p, *t;          const char       *p, *t;
         int               i;          int               i;
Line 212  print_man(const struct man_node *n, int indent)
Line 210  print_man(const struct man_node *n, int indent)
                 break;                  break;
         default:          default:
                 abort();                  abort();
                 /* NOTREACHED */  
         }          }
   
         switch (n->type) {          switch (n->type) {
Line 238  print_man(const struct man_node *n, int indent)
Line 235  print_man(const struct man_node *n, int indent)
                 break;                  break;
         default:          default:
                 abort();                  abort();
                 /* NOTREACHED */  
         }          }
   
         if (n->span) {          if (n->span) {

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.67

CVSweb