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

Diff for /mandoc/term.c between version 1.6 and 1.7

version 1.6, 2009/02/21 21:00:06 version 1.7, 2009/02/22 14:31:08
Line 24 
Line 24 
 #include <string.h>  #include <string.h>
 #include <unistd.h>  #include <unistd.h>
   
   #ifdef __linux__
   #include <time.h>
   #endif
   
 #include "term.h"  #include "term.h"
   
 enum    termstyle {  enum    termstyle {
Line 46  static void    pescape(struct termp *, 
Line 50  static void    pescape(struct termp *, 
 static  void              chara(struct termp *, char);  static  void              chara(struct termp *, char);
 static  void              style(struct termp *, enum termstyle);  static  void              style(struct termp *, enum termstyle);
   
   #ifdef __linux__
   extern  size_t            strlcat(char *, const char *, size_t);
   extern  size_t            strlcpy(char *, const char *, size_t);
   #endif
   
 void  void
 flushln(struct termp *p)  flushln(struct termp *p)
Line 363  termprint_footer(struct termp *p, const struct mdoc_me
Line 371  termprint_footer(struct termp *p, const struct mdoc_me
                 err(1, "malloc");                  err(1, "malloc");
   
         tm = localtime(&meta->date);          tm = localtime(&meta->date);
   
   #ifdef __linux__
           if (0 == strftime(buf, p->rmargin, "%B %d, %Y", tm))
   #else
         if (NULL == strftime(buf, p->rmargin, "%B %d, %Y", tm))          if (NULL == strftime(buf, p->rmargin, "%B %d, %Y", tm))
   #endif
                 err(1, "strftime");                  err(1, "strftime");
   
         osz = strlcpy(os, meta->os, p->rmargin);          osz = strlcpy(os, meta->os, p->rmargin);

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

CVSweb