diff options
| author | Kenichi Handa | 1999-09-03 01:28:42 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1999-09-03 01:28:42 +0000 |
| commit | 765fe1d0fac970c0354d8bd0c79605e8bb307850 (patch) | |
| tree | 1c401bc1cb83da07dd170d9e908ed0d6839e7e09 /src | |
| parent | e50d9192e8e44fcb053934347636d05a08d67a24 (diff) | |
| download | emacs-765fe1d0fac970c0354d8bd0c79605e8bb307850.tar.gz emacs-765fe1d0fac970c0354d8bd0c79605e8bb307850.zip | |
(print_string): Use the macro STRING_CHAR_AND_LENGTH.
(print): Likewise.
Diffstat (limited to 'src')
| -rw-r--r-- | src/print.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/print.c b/src/print.c index ecd146808ed..39e450dc0ed 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -498,8 +498,8 @@ print_string (string, printcharfun) | |||
| 498 | /* Here, we must convert each multi-byte form to the | 498 | /* Here, we must convert each multi-byte form to the |
| 499 | corresponding character code before handing it to PRINTCHAR. */ | 499 | corresponding character code before handing it to PRINTCHAR. */ |
| 500 | int len; | 500 | int len; |
| 501 | int ch = STRING_CHAR_AND_CHAR_LENGTH (XSTRING (string)->data + i, | 501 | int ch = STRING_CHAR_AND_LENGTH (XSTRING (string)->data + i, |
| 502 | size_byte - i, len); | 502 | size_byte - i, len); |
| 503 | if (!CHAR_VALID_P (ch, 0)) | 503 | if (!CHAR_VALID_P (ch, 0)) |
| 504 | { | 504 | { |
| 505 | ch = XSTRING (string)->data[i]; | 505 | ch = XSTRING (string)->data[i]; |
| @@ -1141,8 +1141,8 @@ print (obj, printcharfun, escapeflag) | |||
| 1141 | 1141 | ||
| 1142 | if (STRING_MULTIBYTE (obj)) | 1142 | if (STRING_MULTIBYTE (obj)) |
| 1143 | { | 1143 | { |
| 1144 | c = STRING_CHAR_AND_CHAR_LENGTH (str + i_byte, | 1144 | c = STRING_CHAR_AND_LENGTH (str + i_byte, |
| 1145 | size_byte - i_byte, len); | 1145 | size_byte - i_byte, len); |
| 1146 | if (CHAR_VALID_P (c, 0)) | 1146 | if (CHAR_VALID_P (c, 0)) |
| 1147 | i_byte += len; | 1147 | i_byte += len; |
| 1148 | else | 1148 | else |