You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by st...@hyperreal.org on 2000/02/01 01:08:27 UTC

cvs commit: apache-2.0/src/lib/apr/time/win32 time.c

stoddard    00/01/31 16:08:26

  Modified:    src/lib/apr/time/win32 time.c
  Log:
  Make some of the APR to Windows time conversion routines available to other
  APR functions.
  
  Revision  Changes    Path
  1.7       +3 -5      apache-2.0/src/lib/apr/time/win32/time.c
  
  Index: time.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/time/win32/time.c,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- time.c	2000/01/17 23:17:37	1.6
  +++ time.c	2000/02/01 00:08:25	1.7
  @@ -67,7 +67,7 @@
    */
   #define AP_DELTA_EPOCH_IN_USEC   11644473600000000;
   
  -static void FileTimeToAprTime(ap_time_t *result, FILETIME *input)
  +void FileTimeToAprTime(ap_time_t *result, FILETIME *input)
   {
       /* Convert FILETIME one 64 bit number so we can work with it. */
       *result = input->dwHighDateTime;
  @@ -75,13 +75,11 @@
       *result |= input->dwLowDateTime;
       *result /= 10;    /* Convert from 100 nano-sec periods to micro-seconds. */
       *result -= AP_DELTA_EPOCH_IN_USEC;  /* Convert from Windows epoch to Unix epoch */
  -    //printf("FileTimeToAprTime: aprtime - %I64d\n", *result);
       return;
   }
  -static void AprTimeToFileTime(LPFILETIME pft, ap_time_t t)
  +void AprTimeToFileTime(LPFILETIME pft, ap_time_t t)
   {
       LONGLONG ll;
  -    //printf("AprTimeToFileTime: aprtime - %I64d\n", t);
       t += AP_DELTA_EPOCH_IN_USEC;
       ll = t * 10;
       pft->dwLowDateTime = (DWORD)ll;
  @@ -89,7 +87,7 @@
       return;
   }
   
  -static void SystemTimeToAprExpTime(ap_exploded_time_t *xt, SYSTEMTIME *tm)
  +void SystemTimeToAprExpTime(ap_exploded_time_t *xt, SYSTEMTIME *tm)
   {
       xt->tm_usec = tm->wMilliseconds * 1000;
       xt->tm_sec  = tm->wSecond;