instead of XSTRING()->size_byte.
2002-07-16 Ken Raeburn <raeburn@gnu.org>
+ * fontset.c (Fset_fontset_font): Use SDATA instead of
+ XSTRING()->data.
+
+ * charset.h (FETCH_STRING_CHAR_ADVANCE,
+ FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
+ XSTRING()->size_byte.
+
* lisp.h (SDATA, SREF): Produce rvalue.
(SSET): New macro.
* alloc.c (make_event_array): Use SSET for storing into a string.
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); \
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 \