changeset 22711:ed021e36c5f9

(concat): Replace explicit numeric constants with proper macros.
author Kenichi Handa <handa@m17n.org>
date Wed, 08 Jul 1998 02:19:14 +0000
parents 0df26ec111fd
children 6f129ed55108
files src/fns.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/fns.c	Tue Jul 07 20:47:36 1998 +0000
+++ b/src/fns.c	Wed Jul 08 02:19:14 1998 +0000
@@ -667,8 +667,8 @@
 		 STRING_BYTES (XSTRING (this)));
 	  if (some_multibyte
 	      && toindex_byte > 0
-	      && XSTRING (val)->data[toindex_byte - 1] >= 0x80
-	      && XSTRING (this)->data[0] >= 0xA0)
+	      && !ASCII_BYTE_P (XSTRING (val)->data[toindex_byte - 1])
+	      && !CHAR_HEAD_P (XSTRING (this)->data[0] >= 0xA0))
 	    maybe_combine_byte = 1;
 	  toindex_byte += thislen_byte;
 	  toindex += thisleni;
@@ -744,8 +744,8 @@
 		  {
 		    if (some_multibyte
 			&& toindex_byte > 0
-			&& XSTRING (val)->data[toindex_byte - 1] >= 0x80
-			&& XINT (elt) >= 0xA0)
+			&& !ASCII_BYTE_P (XSTRING (val)->data[toindex_byte - 1])
+			&& !CHAR_HEAD_P (XINT (elt)))
 		      maybe_combine_byte = 1;
 		    XSTRING (val)->data[toindex_byte++] = XINT (elt);
 		    toindex++;