apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/time/win32 timestr.c
Date Wed, 11 Dec 2002 03:02:37 GMT
wrowe       2002/12/10 19:02:37

  Modified:    time/win32 timestr.c
  Log:
    Without strftime() on wince, apr_strftime is currently unimplemented.
  
  Revision  Changes    Path
  1.20      +11 -1     apr/time/win32/timestr.c
  
  Index: timestr.c
  ===================================================================
  RCS file: /home/cvs/apr/time/win32/timestr.c,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- timestr.c	13 Apr 2002 12:00:07 -0000	1.19
  +++ timestr.c	11 Dec 2002 03:02:37 -0000	1.20
  @@ -155,6 +155,9 @@
       return APR_SUCCESS;
   }
   
  +
  +#ifndef _WIN32_WCE
  +
   int win32_strftime_extra(char *s, size_t max, const char *format,
                            const struct tm *tm) {
      /* If the new format string is bigger than max, the result string won't fit
  @@ -216,12 +219,18 @@
       }
       free(new_format);
       return return_value;
  - }
  +}
  +
  +#endif
  +
   
   APR_DECLARE(apr_status_t) apr_strftime(char *s, apr_size_t *retsize,
                                          apr_size_t max, const char *format,
                                          apr_time_exp_t *xt)
   {
  +#ifdef _WIN32_WCE
  +    return APR_ENOTIMPL;
  +#else
       struct tm tm;
       memset(&tm, 0, sizeof tm);
       tm.tm_sec  = xt->tm_sec;
  @@ -235,4 +244,5 @@
       tm.tm_isdst = xt->tm_isdst;
       (*retsize) = win32_strftime_extra(s, max, format, &tm);
       return APR_SUCCESS;
  +#endif
   }
  
  
  

Mime
View raw message