summaryrefslogtreecommitdiff
path: root/op.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-03-10 04:57:07 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-03-10 04:57:07 +0000
commit59bd0823b6625605b67ec19bd9bcc4dd06530e7e (patch)
treec458c6636e5d8beb343d9a9b8fdec8f949f42584 /op.h
parentcb8129f94a333dfcf2cb8cf5b66784f951fc14de (diff)
downloadperl-59bd0823b6625605b67ec19bd9bcc4dd06530e7e.tar.gz
Renaming tweaks, and split off the reentrant "superbuffer"
init routine. p4raw-id: //depot/perl@15139
Diffstat (limited to 'op.h')
-rw-r--r--op.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/op.h b/op.h
index 1cbacb34e9..da59e441b8 100644
--- a/op.h
+++ b/op.h
@@ -479,11 +479,11 @@ struct loop {
#ifdef USE_REENTRANT_API
typedef struct {
- struct tm* tmbuff;
-} REBUF;
+ struct tm* tmbuf;
+} REENTBUF;
-#define localtime(a) (localtime_r((a),PL_reentrant_buffer->tmbuff) ? PL_reentrant_buffer->tmbuff : NULL)
-#define gmtime(a) (gmtime_r((a),PL_reentrant_buffer->tmbuff) ? PL_reentrant_buffer->tmbuff : NULL)
+#define localtime(a) (localtime_r((a),PL_reentrant_buffer->tmbuf) ? PL_reentrant_buffer->tmbuf : NULL)
+#define gmtime(a) (gmtime_r((a),PL_reentrant_buffer->tmbuf) ? PL_reentrant_buffer->tmbuf : NULL)
#ifdef OLD_PTHREADS_API
@@ -493,8 +493,8 @@ typedef struct {
#undef localtime
#undef gmtime
-#define localtime(a) ((localtime_r((a),PL_reentrant_buffer->tmbuff) == 0) ? PL_reentrant_buffer->tmbuff : NULL)
-#define gmtime(a) ((gmtime_r((a),PL_reentrant_buffer->tmbuff) == 0) ? PL_reentrant_buffer->tmbuff : NULL)
+#define localtime(a) ((localtime_r((a),PL_reentrant_buffer->tmbuf) == 0) ? PL_reentrant_buffer->tmbuf : NULL)
+#define gmtime(a) ((gmtime_r((a),PL_reentrant_buffer->tmbuf) == 0) ? PL_reentrant_buffer->tmbuf : NULL)
#endif /* HP-UX 10.20 */
#endif