diff options
author | Craig A. Berry <craigberry@mac.com> | 2009-03-26 10:44:41 -0500 |
---|---|---|
committer | Craig A. Berry <craigberry@mac.com> | 2009-03-26 10:44:41 -0500 |
commit | 7430375d1909c2b62c1fb3f9c6ed4b9d24dfcf32 (patch) | |
tree | 238a31eba2d15f4b292688f8d9b11dd815116046 /pp_sys.c | |
parent | 5c1e544edd3a9f584fd8b4c8d2f6dcbf01639ec2 (diff) | |
download | perl-7430375d1909c2b62c1fb3f9c6ed4b9d24dfcf32.tar.gz |
Namespace clean-up for time64.
All of the time64 functions are only visible within pp_sys.c and are not
part of the public API, so make them all static and give them the S_ prefix.
A side effect of this is that we now unambiguously use S_localtime64_r and
S_gmtime64_r and should no longer collide with system-supplied versions, if
any.
One possible future direction is that if and when Configure detects any
system-supplied *time64_r functions, their prototypes, and their valid
time ranges, we could optionally select those instead of the home-grown
ones.
Another possible future direction is that we could s/S_/Perl_/ and make
the *time64_r functions part of the public API in some post-5.10.x
release. Currently they are only exposed to the outside world via
Perl_pp_gmtime.
Also gave some TRACE macros more specific names.
Diffstat (limited to 'pp_sys.c')
-rw-r--r-- | pp_sys.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4473,9 +4473,9 @@ PP(pp_gmtime) } if (PL_op->op_type == OP_LOCALTIME) - err = localtime64_r(&when, &tmbuf); + err = S_localtime64_r(&when, &tmbuf); else - err = gmtime64_r(&when, &tmbuf); + err = S_gmtime64_r(&when, &tmbuf); #endif if (err == NULL && ckWARN(WARN_OVERFLOW)) { |