[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.144 and 1.146

version 1.144, 2010/06/07 20:57:09 version 1.146, 2010/06/10 23:24:37
Line 65  static void   print_bvspace(struct termp *,
Line 65  static void   print_bvspace(struct termp *,
                         const struct mdoc_node *,                          const struct mdoc_node *,
                         const struct mdoc_node *);                          const struct mdoc_node *);
 static  void      print_mdoc_node(DECL_ARGS);  static  void      print_mdoc_node(DECL_ARGS);
 static  void      print_mdoc_head(struct termp *, const void *);  
 static  void      print_mdoc_nodelist(DECL_ARGS);  static  void      print_mdoc_nodelist(DECL_ARGS);
 static  void      print_foot(struct termp *, const void *);  static  void      print_mdoc_head(struct termp *, const void *);
   static  void      print_mdoc_foot(struct termp *, const void *);
 static  void      synopsis_pre(struct termp *,  static  void      synopsis_pre(struct termp *,
                         const struct mdoc_node *);                          const struct mdoc_node *);
   
Line 276  terminal_mdoc(void *arg, const struct mdoc *mdoc)
Line 276  terminal_mdoc(void *arg, const struct mdoc *mdoc)
         p->maxrmargin = p->defrmargin;          p->maxrmargin = p->defrmargin;
         p->tabwidth = 5;          p->tabwidth = 5;
   
         term_begin(p, print_mdoc_head, print_foot, mdoc_meta(mdoc));  
   
         if (NULL == p->symtab)          if (NULL == p->symtab)
                 switch (p->enc) {                  switch (p->enc) {
                 case (TERMENC_ASCII):                  case (TERMENC_ASCII):
Line 291  terminal_mdoc(void *arg, const struct mdoc *mdoc)
Line 289  terminal_mdoc(void *arg, const struct mdoc *mdoc)
         n = mdoc_node(mdoc);          n = mdoc_node(mdoc);
         m = mdoc_meta(mdoc);          m = mdoc_meta(mdoc);
   
           term_begin(p, print_mdoc_head, print_mdoc_foot, m);
   
         if (n->child)          if (n->child)
                 print_mdoc_nodelist(p, NULL, m, n->child);                  print_mdoc_nodelist(p, NULL, m, n->child);
   
Line 348  print_mdoc_node(DECL_ARGS)
Line 348  print_mdoc_node(DECL_ARGS)
 }  }
   
   
 /* ARGSUSED */  
 static void  static void
 print_foot(struct termp *p, const void *arg)  print_mdoc_foot(struct termp *p, const void *arg)
 {  {
         char            buf[DATESIZ], os[BUFSIZ];          char            buf[DATESIZ], os[BUFSIZ];
         const struct mdoc_meta *m;          const struct mdoc_meta *m;
Line 400  print_foot(struct termp *p, const void *arg)
Line 399  print_foot(struct termp *p, const void *arg)
 }  }
   
   
 /* ARGSUSED */  
 static void  static void
 print_mdoc_head(struct termp *p, const void *arg)  print_mdoc_head(struct termp *p, const void *arg)
 {  {

Legend:
Removed from v.1.144  
changed lines
  Added in v.1.146

CVSweb