You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by st...@apache.org on 2002/03/17 23:38:25 UTC

cvs commit: apr/time/win32 time.c

striker     02/03/17 14:38:25

  Modified:    .        renames_pending
               include  apr_time.h
               test     testtime.c
               time/unix time.c
               time/win32 time.c
  Log:
  Rename apr_implode_time to apr_time_exp_get.
  
  Submitted by:	Thom May <th...@planetarytramp.net>
  
  Revision  Changes    Path
  1.5       +0 -1      apr/renames_pending
  
  Index: renames_pending
  ===================================================================
  RCS file: /home/cvs/apr/renames_pending,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- renames_pending	6 Mar 2002 20:29:39 -0000	1.4
  +++ renames_pending	17 Mar 2002 22:38:25 -0000	1.5
  @@ -1,6 +1,5 @@
   Symbol renames for APR 
   
  -apr_time_exp_get                 from apr_implode_time
   apr_time_exp_gmt                 from apr_explode_gmt
   apr_time_exp_lt                  from apr_explode_localtime
   apr_time_exp_tz                  from apr_explode_time
  
  
  
  1.46      +1 -1      apr/include/apr_time.h
  
  Index: apr_time.h
  ===================================================================
  RCS file: /home/cvs/apr/include/apr_time.h,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- apr_time.h	13 Mar 2002 20:39:15 -0000	1.45
  +++ apr_time.h	17 Mar 2002 22:38:25 -0000	1.46
  @@ -175,7 +175,7 @@
    * @param result the resulting imploded time
    * @param input the input exploded time
    */
  -APR_DECLARE(apr_status_t) apr_implode_time(apr_time_t *result, 
  +APR_DECLARE(apr_status_t) apr_time_exp_get(apr_time_t *result, 
                                              apr_time_exp_t *input);
   
   /**
  
  
  
  1.29      +3 -3      apr/test/testtime.c
  
  Index: testtime.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testtime.c,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- testtime.c	13 Mar 2002 20:39:28 -0000	1.28
  +++ testtime.c	17 Mar 2002 22:38:25 -0000	1.29
  @@ -87,7 +87,7 @@
       
       STD_TEST_NEQ("    apr_explode_localtime", apr_explode_localtime(&xt2, now))
   
  -    STD_TEST_NEQ("    apr_implode_time (GMT)", apr_implode_time(&imp, &xt))
  +    STD_TEST_NEQ("    apr_time_exp_get (GMT)", apr_time_exp_get(&imp, &xt))
   
       printf("%-60s", "    checking GMT explode == implode");
       if (imp != now) {
  @@ -166,8 +166,8 @@
                strcmp(str, str2), 0, "OK", "Failed")
       printf("        ( %s != %s )\n", str, str2);
   
  -    STD_TEST_NEQ("    apr_implode_time (offset)",
  -                 apr_implode_time(&imp, &xt2))
  +    STD_TEST_NEQ("    apr_time_exp_get (offset)",
  +                 apr_time_exp_get(&imp, &xt2))
      
       hr_off_64 = (apr_int64_t) hr_off * APR_USEC_PER_SEC; /* microseconds */ 
       printf("%-60s","    Checking offset is correct");
  
  
  
  1.63      +2 -2      apr/time/unix/time.c
  
  Index: time.c
  ===================================================================
  RCS file: /home/cvs/apr/time/unix/time.c,v
  retrieving revision 1.62
  retrieving revision 1.63
  diff -u -r1.62 -r1.63
  --- time.c	13 Mar 2002 20:39:31 -0000	1.62
  +++ time.c	17 Mar 2002 22:38:25 -0000	1.63
  @@ -170,7 +170,7 @@
   #endif /* __EMX__ */
   }
   
  -APR_DECLARE(apr_status_t) apr_implode_time(apr_time_t *t, apr_time_exp_t *xt)
  +APR_DECLARE(apr_status_t) apr_time_exp_get(apr_time_t *t, apr_time_exp_t *xt)
   {
       int year;
       time_t days;
  @@ -203,7 +203,7 @@
   
   APR_DECLARE(apr_status_t) apr_implode_gmt(apr_time_t *t, apr_time_exp_t *xt)
   {
  -    apr_status_t status = apr_implode_time(t, xt);
  +    apr_status_t status = apr_time_exp_get(t, xt);
       if (status == APR_SUCCESS)
           *t -= (apr_time_t) xt->tm_gmtoff * APR_USEC_PER_SEC;
       return status;
  
  
  
  1.29      +2 -2      apr/time/win32/time.c
  
  Index: time.c
  ===================================================================
  RCS file: /home/cvs/apr/time/win32/time.c,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- time.c	13 Mar 2002 20:39:31 -0000	1.28
  +++ time.c	17 Mar 2002 22:38:25 -0000	1.29
  @@ -185,7 +185,7 @@
       return APR_SUCCESS;
   }
   
  -APR_DECLARE(apr_status_t) apr_implode_time(apr_time_t *t,
  +APR_DECLARE(apr_status_t) apr_time_exp_get(apr_time_t *t,
                                              apr_time_exp_t *xt)
   {
       int year;
  @@ -223,7 +223,7 @@
   APR_DECLARE(apr_status_t) apr_implode_gmt(apr_time_t *t,
                                             apr_time_exp_t *xt)
   {
  -    apr_status_t status = apr_implode_time(t, xt);
  +    apr_status_t status = apr_time_exp_get(t, xt);
       if (status == APR_SUCCESS)
           *t -= (apr_time_t) xt->tm_gmtoff * APR_USEC_PER_SEC;
       return status;