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)
commit0e427eadea196a21f96f1b466196056d9430b5a9 (patch)
treedab7b43a5ca1853752d51320bb1644e477a1c522
parent884ba1c7869af6d659c880a2dc8a9d7a76f034bd (diff)
parent6600288ed7106cca316a8c7c8bcfabecf5cb7d8e (diff)
downloadtcl-0e427eadea196a21f96f1b466196056d9430b5a9.zip
tcl-0e427eadea196a21f96f1b466196056d9430b5a9.tar.gz
tcl-0e427eadea196a21f96f1b466196056d9430b5a9.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);
-}
/*
*----------------------------------------------------------------------