changeset 22712:6f129ed55108

(Fformat): Replace explicit numeric constants with proper macros.
author Kenichi Handa <handa@m17n.org>
date Wed, 08 Jul 1998 02:19:14 +0000
parents ed021e36c5f9
children e7e1cecf3a1c
files src/editfns.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/editfns.c	Wed Jul 08 02:19:14 1998 +0000
+++ b/src/editfns.c	Wed Jul 08 02:19:14 1998 +0000
@@ -2527,9 +2527,9 @@
 
 	      if (p > buf
 		  && multibyte
-		  && *((unsigned char *) p - 1) >= 0x80
+		  && !ASCII_BYTE_P (*((unsigned char *) p - 1))
 		  && STRING_MULTIBYTE (args[n])
-		  && XSTRING (args[n])->data[0] >= 0xA0)
+		  && !CHAR_HEAD_P (XSTRING (args[n])->data[0]))
 		maybe_combine_byte = 1;
 	      nbytes = copy_text (XSTRING (args[n])->data, p,
 				  STRING_BYTES (XSTRING (args[n])),
@@ -2559,8 +2559,8 @@
 
 	      if (p > buf
 		  && multibyte
-		  && *((unsigned char *) p - 1) >= 0x80
-		  && *((unsigned char *) p) >= 0xA0)
+		  && !ASCII_BYTE_P (*((unsigned char *) p - 1))
+		  && !CHAR_HEAD_P (*((unsigned char *) p)))
 		maybe_combine_byte = 1;
 	      this_nchars = strlen (p);
 	      p += this_nchars;
@@ -2572,8 +2572,8 @@
 	  /* Copy a whole multibyte character.  */
 	  if (p > buf
 	      && multibyte
-	      && *((unsigned char *) p - 1) >= 0x80
-	      && *format >= 0xA0)
+	      && !ASCII_BYTE_P (*((unsigned char *) p - 1))
+	      && !CHAR_HEAD_P (*format))
 	    maybe_combine_byte = 1;
 	  *p++ = *format++;
 	  while (! CHAR_HEAD_P (*format)) *p++ = *format++;