summaryrefslogtreecommitdiffstats
path: root/generic/tclIndexObj.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-02-16 00:37:54 (GMT)
committerhobbs <hobbs>2002-02-16 00:37:54 (GMT)
commitf6f633062717623bc482679f9082c4236df642b0 (patch)
treedc5353569c6ef44bf58ddda38b3e86ce0dd2d21a /generic/tclIndexObj.c
parentb5e9e40d2f0d57b15ea03e954e1c2085b9874fed (diff)
downloadtcl-f6f633062717623bc482679f9082c4236df642b0.zip
tcl-f6f633062717623bc482679f9082c4236df642b0.tar.gz
tcl-f6f633062717623bc482679f9082c4236df642b0.tar.bz2
* generic/tclIndexObj.c (STRING_AT): removed ptrdiff_t cast and
use of VOID* in default case (GNU-ism).
Diffstat (limited to 'generic/tclIndexObj.c')
-rw-r--r--generic/tclIndexObj.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/generic/tclIndexObj.c b/generic/tclIndexObj.c
index eab6b96..fbddce9 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.14 2002/02/15 19:58:28 andreas_kupries Exp $
+ * RCS: @(#) $Id: tclIndexObj.c,v 1.15 2002/02/16 00:37:54 hobbs Exp $
*/
#include "tclInt.h"
@@ -56,21 +56,9 @@ typedef struct {
/*
* The following macros greatly simplify moving through a table...
- *
- * SunPro CC prohibits address arithmetic on (void *) values, so
- * use (char *) on that platform/build-environment instead.
*/
-#ifdef __sparc
-# define STRING_AT(table, offset, index) \
- (*((CONST char * CONST *)(((char *)(table)) + ((offset) * (index)))))
-
-#elif defined (WIN32)
-# define STRING_AT(table, offset, index) \
+#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)))))
-#endif
#define NEXT_ENTRY(table, offset) \
(&(STRING_AT(table, offset, 1)))
#define EXPAND_OF(indexRep) \