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

Diff for /mandoc/Attic/mdoc_strings.c between version 1.4 and 1.5

version 1.4, 2009/06/12 12:40:44 version 1.5, 2009/06/15 09:38:37
Line 216  mdoc_atotime(const char *p)
Line 216  mdoc_atotime(const char *p)
   
         (void)memset(&tm, 0, sizeof(struct tm));          (void)memset(&tm, 0, sizeof(struct tm));
   
         if (0 == strcmp(p, "$Mdocdate$"))          if (0 == strcmp(p, "$" "Mdocdate$"))
                 return(time(NULL));                  return(time(NULL));
         if ((pp = strptime(p, "$Mdocdate$", &tm)) && 0 == *pp)          if ((pp = strptime(p, "$" "Mdocdate: %b %d %Y $", &tm)) && 0 == *pp)
                 return(mktime(&tm));                  return(mktime(&tm));
         /* XXX - this matches "June 1999", which is wrong. */          /* XXX - this matches "June 1999", which is wrong. */
         if ((pp = strptime(p, "%b %d %Y", &tm)) && 0 == *pp)          if ((pp = strptime(p, "%b %d %Y", &tm)) && 0 == *pp)

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

CVSweb