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

Diff for /mandoc/Attic/strings.c between version 1.7 and 1.8

version 1.7, 2009/01/16 11:50:54 version 1.8, 2009/01/16 12:23:25
Line 135  mdoc_atotime(const char *p)
Line 135  mdoc_atotime(const char *p)
   
         (void)memset(&tm, 0, sizeof(struct tm));          (void)memset(&tm, 0, sizeof(struct tm));
   
         if (strptime(p, "%b %d %Y", &tm))          if (0 == strptime(p, "%b %d %Y", &tm))
                 return(mktime(&tm));                  return(mktime(&tm));
         if (strptime(p, "%b %d, %Y", &tm))          if (0 == strptime(p, "%b %d, %Y", &tm))
                 return(mktime(&tm));                  return(mktime(&tm));
   
         return(0);          return(0);
Line 228  mdoc_atoarch(const char *p)
Line 228  mdoc_atoarch(const char *p)
                 return(ARCH_amiga);                  return(ARCH_amiga);
         else if (0 == strcmp(p, "arc"))          else if (0 == strcmp(p, "arc"))
                 return(ARCH_arc);                  return(ARCH_arc);
           else if (0 == strcmp(p, "arm"))
                   return(ARCH_arm);
         else if (0 == strcmp(p, "armish"))          else if (0 == strcmp(p, "armish"))
                 return(ARCH_armish);                  return(ARCH_armish);
         else if (0 == strcmp(p, "aviion"))          else if (0 == strcmp(p, "aviion"))

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

CVSweb