[BACK]Return to mdoc_strings.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/Attic/mdoc_strings.c between version 1.3 and 1.4

version 1.3, 2009/06/15 01:36:23 version 1.4, 2009/06/15 03:42:51
Line 210 
Line 210 
   
         (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.3  
changed lines
  Added in v.1.4