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

Diff for /mandoc/term_ps.c between version 1.65 and 1.66

version 1.65, 2014/08/24 23:43:13 version 1.66, 2014/08/28 01:37:12
Line 25 
Line 25 
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
 #include <time.h>  
 #include <unistd.h>  #include <unistd.h>
   
 #include "mandoc.h"  #include "mandoc.h"
Line 852  ps_end(struct termp *p)
Line 851  ps_end(struct termp *p)
 static void  static void
 ps_begin(struct termp *p)  ps_begin(struct termp *p)
 {  {
         time_t           t;  
         int              i;          int              i;
   
         /*          /*
Line 893  ps_begin(struct termp *p)
Line 891  ps_begin(struct termp *p)
          * stuff gets printed to the screen, so make sure we're sane.           * stuff gets printed to the screen, so make sure we're sane.
          */           */
   
         t = time(NULL);  
   
         if (TERMTYPE_PS == p->type) {          if (TERMTYPE_PS == p->type) {
                 ps_printf(p, "%%!PS-Adobe-3.0\n");                  ps_printf(p, "%%!PS-Adobe-3.0\n");
                 ps_printf(p, "%%%%CreationDate: %s", ctime(&t));  
                 ps_printf(p, "%%%%DocumentData: Clean7Bit\n");                  ps_printf(p, "%%%%DocumentData: Clean7Bit\n");
                 ps_printf(p, "%%%%Orientation: Portrait\n");                  ps_printf(p, "%%%%Orientation: Portrait\n");
                 ps_printf(p, "%%%%Pages: (atend)\n");                  ps_printf(p, "%%%%Pages: (atend)\n");

Legend:
Removed from v.1.65  
changed lines
  Added in v.1.66

CVSweb