summaryrefslogtreecommitdiffstats
path: root/generic/tclUtf.c
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2002-05-30 03:27:09 (GMT)
committerhobbs <hobbs@noemail.net>2002-05-30 03:27:09 (GMT)
commitcb34d15de115e14bd45bb712ca1c3e6c16d3aff6 (patch)
tree2ac8f1f6e76a23dd45fffcc5b2d2f6a928444c32 /generic/tclUtf.c
parent6122bb1ae1a461a1f7b56ddc7e1792f4cad7aacb (diff)
downloadtcl-cb34d15de115e14bd45bb712ca1c3e6c16d3aff6.zip
tcl-cb34d15de115e14bd45bb712ca1c3e6c16d3aff6.tar.gz
tcl-cb34d15de115e14bd45bb712ca1c3e6c16d3aff6.tar.bz2
* unix/configure: regen'ed
* unix/configure.in: replaced bigendian check with autoconf standard AC_C_BIG_ENDIAN, which defined WORDS_BIGENDIAN on bigendian systems. * generic/tclUtf.c (Tcl_UniCharNcmp): * generic/tclInt.h (TclUniCharNcmp): use WORDS_BIGENDIAN instead of TCL_OPTIMIZE_UNICODE_COMPARE to enable memcmp alternative. FossilOrigin-Name: 5a5c16e5a7f51a49329ffd01213fa96bbf77eddd
Diffstat (limited to 'generic/tclUtf.c')
-rw-r--r--generic/tclUtf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclUtf.c b/generic/tclUtf.c
index 667bb6d..522b835 100644
--- a/generic/tclUtf.c
+++ b/generic/tclUtf.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclUtf.c,v 1.25 2002/05/29 10:35:46 dkf Exp $
+ * RCS: @(#) $Id: tclUtf.c,v 1.26 2002/05/30 03:27:09 hobbs Exp $
*/
#include "tclInt.h"
@@ -1351,13 +1351,13 @@ Tcl_UniCharNcmp(cs, ct, n)
CONST Tcl_UniChar *ct; /* Unicode string cs is compared to. */
unsigned long n; /* Number of unichars to compare. */
{
-#ifdef TCL_OPTIMIZE_UNICODE_COMPARE
+#ifdef WORDS_BIGENDIAN
/*
* We are definitely on a big-endian machine; memcmp() is safe
*/
return memcmp(cs, ct, n*sizeof(Tcl_UniChar));
-#else /* !TCL_OPTIMIZE_UNICODE_COMPARE */
+#else /* !WORDS_BIGENDIAN */
/*
* We can't simply call memcmp() because that is not lexically correct.
*/
@@ -1367,7 +1367,7 @@ Tcl_UniCharNcmp(cs, ct, n)
}
}
return 0;
-#endif /* TCL_OPTIMIZE_UNICODE_COMPARE */
+#endif /* WORDS_BIGENDIAN */
}
/*