[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.12 and 1.14

version 1.12, 2009/06/12 09:18:00 version 1.14, 2009/06/16 19:45:51
Line 183  struct termact {
Line 183  struct termact {
 };  };
   
 static const struct termact termacts[MDOC_MAX] = {  static const struct termact termacts[MDOC_MAX] = {
         { NULL, NULL }, /* \" */          { termp_ap_pre, NULL }, /* Ap */
         { NULL, NULL }, /* Dd */          { NULL, NULL }, /* Dd */
         { NULL, NULL }, /* Dt */          { NULL, NULL }, /* Dt */
         { NULL, NULL }, /* Os */          { NULL, NULL }, /* Os */
Line 290  static const struct termact termacts[MDOC_MAX] = {
Line 290  static const struct termact termacts[MDOC_MAX] = {
         { NULL, NULL }, /* Fr */          { NULL, NULL }, /* Fr */
         { termp_ud_pre, NULL }, /* Ud */          { termp_ud_pre, NULL }, /* Ud */
         { termp_lb_pre, termp_lb_post }, /* Lb */          { termp_lb_pre, termp_lb_post }, /* Lb */
         { termp_ap_pre, NULL }, /* Lb */          { termp_pp_pre, NULL }, /* Lp */
         { termp_pp_pre, NULL }, /* Pp */  
         { termp_lk_pre, NULL }, /* Lk */          { termp_lk_pre, NULL }, /* Lk */
         { termp_mt_pre, NULL }, /* Mt */          { termp_mt_pre, NULL }, /* Mt */
         { termp_brq_pre, termp_brq_post }, /* Brq */          { termp_brq_pre, termp_brq_post }, /* Brq */
Line 336  mdoc_run(struct termp *p, const struct mdoc *m)
Line 335  mdoc_run(struct termp *p, const struct mdoc *m)
          */           */
   
         print_head(p, mdoc_meta(m));          print_head(p, mdoc_meta(m));
         print_body(p, NULL, mdoc_meta(m), mdoc_node(m));          assert(mdoc_node(m));
           assert(MDOC_ROOT == mdoc_node(m)->type);
           if (mdoc_node(m)->child)
                   print_body(p, NULL, mdoc_meta(m), mdoc_node(m)->child);
         print_foot(p, mdoc_meta(m));          print_foot(p, mdoc_meta(m));
         return(1);          return(1);
 }  }
Line 415  print_foot(struct termp *p, const struct mdoc_meta *me
Line 417  print_foot(struct termp *p, const struct mdoc_meta *me
   
         tm = localtime(&meta->date);          tm = localtime(&meta->date);
   
 #ifdef __OpenBSD__  
         if (NULL == strftime(buf, p->rmargin, "%B %d, %Y", tm))  
 #else  
         if (0 == strftime(buf, p->rmargin, "%B %d, %Y", tm))          if (0 == strftime(buf, p->rmargin, "%B %d, %Y", tm))
 #endif  
                 err(1, "strftime");                  err(1, "strftime");
   
         (void)strlcpy(os, meta->os, p->rmargin);          (void)strlcpy(os, meta->os, p->rmargin);

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.14

CVSweb