summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-03-25 14:05:02 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-03-25 14:05:02 (GMT)
commitfe3de7265bb0cf9d68a48a345366f895362b6083 (patch)
treedab7b43a5ca1853752d51320bb1644e477a1c522
parentaea17338146fe2dd8a42a5dcd4f3fa8af71f0c1e (diff)
parent273e2bf1be13dfe8723534fd320115ae347fb1da (diff)
downloadtcl-fe3de7265bb0cf9d68a48a345366f895362b6083.zip
tcl-fe3de7265bb0cf9d68a48a345366f895362b6083.tar.gz
tcl-fe3de7265bb0cf9d68a48a345366f895362b6083.tar.bz2
Remove Tclp(Local|Gm)time_unix forwarders, the same can be done directly
-rw-r--r--generic/tclIntPlatDecls.h2
-rw-r--r--generic/tclStubInit.c2
-rw-r--r--unix/tclUnixTime.c20
3 files changed, 4 insertions, 20 deletions
diff --git a/generic/tclIntPlatDecls.h b/generic/tclIntPlatDecls.h
index 10ae67b..0f1c0d1 100644
--- a/generic/tclIntPlatDecls.h
+++ b/generic/tclIntPlatDecls.h
@@ -426,5 +426,7 @@ extern const TclIntPlatStubs *tclIntPlatStubsPtr;
#undef TCL_STORAGE_CLASS
#define TCL_STORAGE_CLASS DLLIMPORT
+#undef TclpLocaltime_unix
+#undef TclpGmtime_unix
#endif /* _TCLINTPLATDECLS */
diff --git a/generic/tclStubInit.c b/generic/tclStubInit.c
index eb9a9be..054ece5 100644
--- a/generic/tclStubInit.c
+++ b/generic/tclStubInit.c
@@ -39,6 +39,8 @@
#undef Tcl_CreateHashEntry
#undef Tcl_Panic
#undef Tcl_FindExecutable
+#define TclpLocaltime_unix TclpLocaltime
+#define TclpGmtime_unix TclpGmtime
/*
* WARNING: The contents of this file is automatically generated by the
diff --git a/unix/tclUnixTime.c b/unix/tclUnixTime.c
index 7739079..02a90a5 100644
--- a/unix/tclUnixTime.c
+++ b/unix/tclUnixTime.c
@@ -431,17 +431,6 @@ TclpGmtime(
return &tsdPtr->gmtime_buf;
}
-
-/*
- * Forwarder for obsolete item in Stubs
- */
-
-struct tm *
-TclpGmtime_unix(
- const time_t *timePtr)
-{
- return TclpGmtime(timePtr);
-}
/*
*----------------------------------------------------------------------
@@ -482,15 +471,6 @@ TclpLocaltime(
return &tsdPtr->localtime_buf;
}
-/*
- * Forwarder for obsolete item in Stubs
- */
-struct tm*
-TclpLocaltime_unix(
- const time_t *timePtr)
-{
- return TclpLocaltime(timePtr);
-}
/*
*----------------------------------------------------------------------