From: Craig A. Berry Date: Mon, 5 Jan 2009 02:58:49 +0000 (-0600) Subject: Make time64.c's internal copy function names more readable and VMS-friendly. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ef3a38ffad701e4f5a98a0a1f84c7e2e8c3da11e;p=p5sagit%2Fp5-mst-13.2.git Make time64.c's internal copy function names more readable and VMS-friendly. --- diff --git a/time64.c b/time64.c index 84ab049..3ac6707 100644 --- a/time64.c +++ b/time64.c @@ -266,7 +266,7 @@ static int safe_year(Year year) } -void copy_tm_to_TM(const struct tm *src, struct TM *dest) { +void copy_little_tm_to_big_TM(const struct tm *src, struct TM *dest) { if( src == NULL ) { memset(dest, 0, sizeof(*dest)); } @@ -298,7 +298,7 @@ void copy_tm_to_TM(const struct tm *src, struct TM *dest) { } -void copy_TM_to_tm(const struct TM *src, struct tm *dest) { +void copy_big_TM_to_little_tm(const struct TM *src, struct tm *dest) { if( src == NULL ) { memset(dest, 0, sizeof(*dest)); } @@ -382,7 +382,7 @@ struct TM *gmtime64_r (const Time64_T *in_time, struct TM *p) struct tm safe_date; GMTIME_R(&safe_time, &safe_date); - copy_tm_to_TM(&safe_date, p); + copy_little_tm_to_big_TM(&safe_date, p); assert(check_tm(p)); return p; @@ -509,7 +509,7 @@ struct TM *localtime64_r (const Time64_T *time, struct TM *local_tm) LOCALTIME_R(&safe_time, &safe_date); - copy_tm_to_TM(&safe_date, local_tm); + copy_little_tm_to_big_TM(&safe_date, local_tm); assert(check_tm(local_tm)); return local_tm; @@ -536,7 +536,7 @@ struct TM *localtime64_r (const Time64_T *time, struct TM *local_tm) return NULL; } - copy_tm_to_TM(&safe_date, local_tm); + copy_little_tm_to_big_TM(&safe_date, local_tm); local_tm->tm_year = orig_year; if( local_tm->tm_year != orig_year ) {