summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2009-03-26 10:44:41 -0500
committerCraig A. Berry <craigberry@mac.com>2009-03-26 10:44:41 -0500
commit7430375d1909c2b62c1fb3f9c6ed4b9d24dfcf32 (patch)
tree238a31eba2d15f4b292688f8d9b11dd815116046 /pp_sys.c
parent5c1e544edd3a9f584fd8b4c8d2f6dcbf01639ec2 (diff)
downloadperl-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pp_sys.c b/pp_sys.c
index b42cced0e2..46cb17eae4 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -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)) {