summaryrefslogtreecommitdiffstats
path: root/generic/tclIndexObj.c
diff options
context:
space:
mode:
authorandreas_kupries <akupries@shaw.ca>2002-02-15 19:58:28 (GMT)
committerandreas_kupries <akupries@shaw.ca>2002-02-15 19:58:28 (GMT)
commit097b4b7f2e14a0d47f82c9d8b7579bee651660b4 (patch)
treebc4839f43def6eadc8b2d9058b931dc569d662bf /generic/tclIndexObj.c
parent66a15c6f8be47c3acbdddffadc67f50dec8a56e6 (diff)
downloadtcl-097b4b7f2e14a0d47f82c9d8b7579bee651660b4.zip
tcl-097b4b7f2e14a0d47f82c9d8b7579bee651660b4.tar.gz
tcl-097b4b7f2e14a0d47f82c9d8b7579bee651660b4.tar.bz2
* tclExecute.c:
* tclIOGT.c: * tclIndexObj.c: Touchups to the TIP 72 patch to make it compileable under Windows again. The changes are not complete, there is one nasty regarding _stati64
Diffstat (limited to 'generic/tclIndexObj.c')
-rw-r--r--generic/tclIndexObj.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/generic/tclIndexObj.c b/generic/tclIndexObj.c
index 4b5dfe4..eab6b96 100644
--- a/generic/tclIndexObj.c
+++ b/generic/tclIndexObj.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclIndexObj.c,v 1.13 2002/02/15 14:28:49 dkf Exp $
+ * RCS: @(#) $Id: tclIndexObj.c,v 1.14 2002/02/15 19:58:28 andreas_kupries Exp $
*/
#include "tclInt.h"
@@ -63,6 +63,10 @@ typedef struct {
#ifdef __sparc
# define STRING_AT(table, offset, index) \
(*((CONST char * CONST *)(((char *)(table)) + ((offset) * (index)))))
+
+#elif defined (WIN32)
+# define STRING_AT(table, offset, index) \
+ (*((CONST char * CONST *)(((char *)(table)) + ((offset) * (index)))))
#else
# define STRING_AT(table, offset, index) \
(*((CONST char * CONST *)(((VOID *)(table)) + (ptrdiff_t)((offset) * (index)))))
@@ -266,7 +270,7 @@ Tcl_GetIndexFromObjStruct(interp, objPtr, tablePtr, offset, msg, flags,
objPtr->internalRep.otherValuePtr = (VOID *) indexRep;
objPtr->typePtr = &tclIndexType;
}
- indexRep->tablePtr = tablePtr;
+ indexRep->tablePtr = (VOID*) tablePtr;
indexRep->offset = offset;
indexRep->index = index;