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

Diff for /mandoc/man_term.c between version 1.40 and 1.43

version 1.40, 2009/10/18 19:03:37 version 1.43, 2009/10/22 18:55:32
Line 191  arg2height(const struct man_node *n)
Line 191  arg2height(const struct man_node *n)
         if ( ! a2roffsu(n->string, &su, SCALE_VS))          if ( ! a2roffsu(n->string, &su, SCALE_VS))
                 SCALE_VS_INIT(&su, strlen(n->string));                  SCALE_VS_INIT(&su, strlen(n->string));
   
         return(term_vspan(&su));          return((int)term_vspan(&su));
 }  }
   
   
Line 203  arg2width(const struct man_node *n)
Line 203  arg2width(const struct man_node *n)
         assert(MAN_TEXT == n->type);          assert(MAN_TEXT == n->type);
         assert(n->string);          assert(n->string);
         if ( ! a2roffsu(n->string, &su, SCALE_BU))          if ( ! a2roffsu(n->string, &su, SCALE_BU))
                 SCALE_HS_INIT(&su, strlen(n->string) + 2);                  return(-1);
   
         return(term_hspan(&su));          return((int)term_hspan(&su));
 }  }
   
   
Line 909  print_body(DECL_ARGS)
Line 909  print_body(DECL_ARGS)
 static void  static void
 print_foot(struct termp *p, const struct man_meta *meta)  print_foot(struct termp *p, const struct man_meta *meta)
 {  {
         struct tm       *tm;          char            buf[DATESIZ];
         char             buf[BUFSIZ];  
   
         tm = localtime(&meta->date);          time2a(meta->date, buf, DATESIZ);
   
         if (0 == strftime(buf, p->rmargin, "%B %d, %Y", tm))  
                 (void)strlcpy(buf, "(invalid date)", BUFSIZ);  
   
         term_vspace(p);          term_vspace(p);
   

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.43

CVSweb