Mercurial > emacs
diff src/print.c @ 21244:50929073a0ba
Use STRING_BYTES and SET_STRING_BYTES.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 21 Mar 1998 07:06:14 +0000 |
parents | 77b24424ae6b |
children | c6212caa6fe2 |
line wrap: on
line diff
--- a/src/print.c Sat Mar 21 06:16:35 1998 +0000 +++ b/src/print.c Sat Mar 21 07:06:14 1998 +0000 @@ -536,7 +536,7 @@ /* strout is safe for output to a frame (echo area) or to print_buffer. */ strout (XSTRING (string)->data, XSTRING (string)->size, - XSTRING (string)->size_byte, + STRING_BYTES (XSTRING (string)), printcharfun, STRING_MULTIBYTE (string)); else { @@ -544,7 +544,7 @@ So re-fetch the string address for each character. */ int i; int size = XSTRING (string)->size; - int size_byte = XSTRING (string)->size_byte; + int size_byte = STRING_BYTES (XSTRING (string)); struct gcpro gcpro1; GCPRO1 (string); if (size == size_byte) @@ -1162,7 +1162,7 @@ #endif PRINTCHAR ('\"'); - size_byte = XSTRING (obj)->size_byte; + size_byte = STRING_BYTES (XSTRING (obj)); for (i = 0, i_byte = 0; i_byte < size_byte;) { @@ -1234,7 +1234,7 @@ { register int confusing; register unsigned char *p = XSYMBOL (obj)->name->data; - register unsigned char *end = p + XSYMBOL (obj)->name->size_byte; + register unsigned char *end = p + STRING_BYTES (XSYMBOL (obj)->name); register int c; int i, i_byte, size_byte; Lisp_Object name; @@ -1296,7 +1296,7 @@ PRINTCHAR (':'); } - size_byte = XSTRING (name)->size_byte; + size_byte = STRING_BYTES (XSTRING (name)); for (i = 0, i_byte = 0; i_byte < size_byte;) {