Mercurial > emacs
comparison src/xdisp.c @ 23127:22c7650e9057
(message_dolog): Use macro CHAR_BYTES instead of Fchar_bytes.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 28 Aug 1998 12:22:39 +0000 |
parents | 32cfe5058f27 |
children | 2df8a4a5e284 |
comparison
equal
deleted
inserted
replaced
23126:cac484ad071c | 23127:22c7650e9057 |
---|---|
333 /* Convert a multibyte string to single-byte | 333 /* Convert a multibyte string to single-byte |
334 for the *Message* buffer. */ | 334 for the *Message* buffer. */ |
335 while (i < len) | 335 while (i < len) |
336 { | 336 { |
337 c = STRING_CHAR (m + i, len - i); | 337 c = STRING_CHAR (m + i, len - i); |
338 i += XFASTINT (Fchar_bytes (make_number (c))); | 338 i += CHAR_BYTES (c); |
339 /* Truncate the character to its last byte--we can only hope | 339 /* Truncate the character to its last byte--we can only hope |
340 the user is happy with the character he gets, | 340 the user is happy with the character he gets, |
341 since if it isn't right, there is no way to do it right. */ | 341 since if it isn't right, there is no way to do it right. */ |
342 c &= 0xff; | 342 c &= 0xff; |
343 insert_char (c); | 343 insert_char (c); |