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

Diff for /pod2mdoc/pod2mdoc.c between version 1.45 and 1.46

version 1.45, 2015/02/14 13:11:10 version 1.46, 2015/02/14 15:34:39
Line 1585  dofile(const struct args *args, const char *fname, 
Line 1585  dofile(const struct args *args, const char *fname, 
 {  {
         char             datebuf[64];          char             datebuf[64];
         struct state     st;          struct state     st;
         const char      *fbase, *fext, *section, *date;          const char      *fbase, *fext, *section, *date, *format;
         char            *title, *cp;          char            *title, *cp;
         size_t           sup, end, i, cur = 0;          size_t           sup, end, i, cur = 0;
   
Line 1630  dofile(const struct args *args, const char *fname, 
Line 1630  dofile(const struct args *args, const char *fname, 
   
         /* Date.  Or the given "tm" if not supplied. */          /* Date.  Or the given "tm" if not supplied. */
   
         if (NULL == (date = args->date)) {          date = args->date;
                 strftime(datebuf, sizeof(datebuf), "%B %d, %Y", tm);          format = (NULL == date) ? "%B %d, %Y" :
               strcmp(date, "Mdocdate") ? NULL : "$Mdocdate$";
   
           if (NULL != format) {
                   strftime(datebuf, sizeof(datebuf), format, tm);
                 date = datebuf;                  date = datebuf;
         }          }
   

Legend:
Removed from v.1.45  
changed lines
  Added in v.1.46

CVSweb