changeset 46441:2eb3c4881e5a

(FETCH_STRING_CHAR_ADVANCE, FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of XSTRING()->size_byte.
author Ken Raeburn <raeburn@raeburn.org>
date Tue, 16 Jul 2002 16:37:06 +0000
parents dd231f1390d2
children 920285978b39
files src/charset.h
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/charset.h	Tue Jul 16 16:35:27 2002 +0000
+++ b/src/charset.h	Tue Jul 16 16:37:06 2002 +0000
@@ -574,7 +574,7 @@
     if (STRING_MULTIBYTE (STRING))					   \
       {									   \
 	unsigned char *ptr = SDATA (STRING) + BYTEIDX;			   \
-	int space_left = XSTRING (STRING)->size_byte - BYTEIDX;		   \
+	int space_left = SBYTES (STRING) - BYTEIDX;			   \
 	int actual_len;							   \
 									   \
 	OUTPUT = STRING_CHAR_AND_LENGTH (ptr, space_left, actual_len);	   \
@@ -591,7 +591,7 @@
 if (1)									      \
   {									      \
     unsigned char *fetch_string_char_ptr = SDATA (STRING) + BYTEIDX;	      \
-    int fetch_string_char_space_left = XSTRING (STRING)->size_byte - BYTEIDX; \
+    int fetch_string_char_space_left = SBYTES (STRING) - BYTEIDX;	      \
     int actual_len;							      \
     									      \
     OUTPUT								      \