comparison src/buffer.h @ 91696:31222e6bb42e

(FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table instead of unibyte_char_to_multibyte.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 09 Feb 2008 10:52:36 +0000
parents 431b8edb4f39
children b4aeed11a1d7
comparison
equal deleted inserted replaced
91695:d6b75497b5cb 91696:31222e6bb42e
341 multibyte. */ 341 multibyte. */
342 342
343 #define FETCH_CHAR_AS_MULTIBYTE(pos) \ 343 #define FETCH_CHAR_AS_MULTIBYTE(pos) \
344 (!NILP (current_buffer->enable_multibyte_characters) \ 344 (!NILP (current_buffer->enable_multibyte_characters) \
345 ? FETCH_MULTIBYTE_CHAR ((pos)) \ 345 ? FETCH_MULTIBYTE_CHAR ((pos)) \
346 : unibyte_char_to_multibyte (FETCH_BYTE ((pos)))) 346 : unibyte_to_multibyte_table[(FETCH_BYTE ((pos)))])
347 347
348 348
349 /* Macros for accessing a character or byte, 349 /* Macros for accessing a character or byte,
350 or converting between byte positions and addresses, 350 or converting between byte positions and addresses,
351 in a specified buffer. */ 351 in a specified buffer. */