summaryrefslogtreecommitdiffstats
path: root/generic/tclStubInit.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2015-12-21 09:16:38 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2015-12-21 09:16:38 (GMT)
commit9b43b746cacc0bfc6ba103dacb84fb88b98b4cbb (patch)
tree0ae433a869c23157131df798c9b4b2e08a86e3cd /generic/tclStubInit.c
parentc6acb1edc0d24cd91e6a9df0c2c5c230a3477216 (diff)
downloadtcl-9b43b746cacc0bfc6ba103dacb84fb88b98b4cbb.zip
tcl-9b43b746cacc0bfc6ba103dacb84fb88b98b4cbb.tar.gz
tcl-9b43b746cacc0bfc6ba103dacb84fb88b98b4cbb.tar.bz2
Put back the stub entries for TclpGetDate/TclpLocaltime/TclpGmtime. Although those functions are dead (they will be removed in Tcl 9, already done in the "novem" branch), removing those functions is a good idea, this cannot be done in any 8.x release. It hinders the acceptance of a "zipfs" TIP, therefore this change should not be part of the "androwish" change-set.
Diffstat (limited to 'generic/tclStubInit.c')
-rw-r--r--generic/tclStubInit.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/generic/tclStubInit.c b/generic/tclStubInit.c
index 9131c45..5b7a1cd 100644
--- a/generic/tclStubInit.c
+++ b/generic/tclStubInit.c
@@ -288,6 +288,10 @@ static int formatInt(char *buffer, int n){
#define TclFormatInt (int(*)(char *, long))formatInt
#endif
+
+#else /* UNIX and MAC */
+# define TclpLocaltime_unix TclpLocaltime
+# define TclpGmtime_unix TclpGmtime
#endif
/*
@@ -437,7 +441,7 @@ static const TclIntStubs tclIntStubs = {
Tcl_RemoveInterpResolvers, /* 130 */
Tcl_SetNamespaceResolvers, /* 131 */
TclpHasSockets, /* 132 */
- 0, /* 133 */
+ TclpGetDate, /* 133 */
0, /* 134 */
0, /* 135 */
0, /* 136 */
@@ -486,8 +490,8 @@ static const TclIntStubs tclIntStubs = {
Tcl_GetStartupScript, /* 179 */
0, /* 180 */
0, /* 181 */
- 0, /* 182 */
- 0, /* 183 */
+ TclpLocaltime, /* 182 */
+ TclpGmtime, /* 183 */
0, /* 184 */
0, /* 185 */
0, /* 186 */
@@ -573,8 +577,8 @@ static const TclIntPlatStubs tclIntPlatStubs = {
TclUnixWaitForFile, /* 8 */
TclpCreateTempFile, /* 9 */
TclpReaddir, /* 10 */
- 0, /* 11 */
- 0, /* 12 */
+ TclpLocaltime_unix, /* 11 */
+ TclpGmtime_unix, /* 12 */
TclpInetNtoa, /* 13 */
TclUnixCopyFile, /* 14 */
0, /* 15 */
@@ -639,8 +643,8 @@ static const TclIntPlatStubs tclIntPlatStubs = {
TclUnixWaitForFile, /* 8 */
TclpCreateTempFile, /* 9 */
TclpReaddir, /* 10 */
- 0, /* 11 */
- 0, /* 12 */
+ TclpLocaltime_unix, /* 11 */
+ TclpGmtime_unix, /* 12 */
TclpInetNtoa, /* 13 */
TclUnixCopyFile, /* 14 */
TclMacOSXGetFileAttribute, /* 15 */