summaryrefslogtreecommitdiff
path: root/time64.c
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2009-01-04 20:58:49 -0600
committerCraig A. Berry <craigberry@mac.com>2009-01-04 20:58:49 -0600
commitef3a38ffad701e4f5a98a0a1f84c7e2e8c3da11e (patch)
treeda25a2d52431fb6d70048166352707551198f4db /time64.c
parenta49f3ea3320dd4b0e999281e3f394540c61f1b8a (diff)
downloadperl-ef3a38ffad701e4f5a98a0a1f84c7e2e8c3da11e.tar.gz
Make time64.c's internal copy function names more readable and VMS-friendly.
Diffstat (limited to 'time64.c')
-rw-r--r--time64.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/time64.c b/time64.c
index 84ab0496ad..3ac6707393 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 ) {