changeset 46421:eb8a43bcef9b

* charset.h (FETCH_STRING_CHAR_ADVANCE, FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting address of string contents.
author Ken Raeburn <raeburn@raeburn.org>
date Tue, 16 Jul 2002 15:49:03 +0000
parents 1ab8a78692f4
children 50a2414d96b7
files src/charset.h
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/charset.h	Tue Jul 16 15:48:59 2002 +0000
+++ b/src/charset.h	Tue Jul 16 15:49:03 2002 +0000
@@ -573,7 +573,7 @@
     CHARIDX++;								   \
     if (STRING_MULTIBYTE (STRING))					   \
       {									   \
-	unsigned char *ptr = &SREF (STRING, BYTEIDX);			   \
+	unsigned char *ptr = SDATA (STRING) + BYTEIDX;			   \
 	int space_left = XSTRING (STRING)->size_byte - BYTEIDX;		   \
 	int actual_len;							   \
 									   \
@@ -590,7 +590,7 @@
 #define FETCH_STRING_CHAR_ADVANCE_NO_CHECK(OUTPUT, STRING, CHARIDX, BYTEIDX)  \
 if (1)									      \
   {									      \
-    unsigned char *fetch_string_char_ptr = &SREF (STRING, BYTEIDX);  \
+    unsigned char *fetch_string_char_ptr = SDATA (STRING) + BYTEIDX;	      \
     int fetch_string_char_space_left = XSTRING (STRING)->size_byte - BYTEIDX; \
     int actual_len;							      \
     									      \