]> git.eshelyaron.com Git - emacs.git/commitdiff
(FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table instead of
authorEli Zaretskii <eliz@gnu.org>
Sat, 9 Feb 2008 10:53:10 +0000 (10:53 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sat, 9 Feb 2008 10:53:10 +0000 (10:53 +0000)
unibyte_char_to_multibyte.

src/ChangeLog
src/buffer.h

index 52ed2dbe02c3d2fd010f0db06de99a2ffe026a13..5ee3586885abaae41db6922831a1b285aab7a07b 100644 (file)
@@ -1,3 +1,8 @@
+2008-02-09  Eli Zaretskii  <eliz@gnu.org>
+
+       * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
+       instead of unibyte_char_to_multibyte.
+
 2008-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
 
        * s/gnu-linux.h: Remove commented out code.
index 8345c8fa06f6927007915987634cee6bd423e502..1124f607bdabf2df57d8630a2daaf4d39bf3511c 100644 (file)
@@ -343,7 +343,7 @@ extern unsigned char *_fetch_multibyte_char_p;
 #define FETCH_CHAR_AS_MULTIBYTE(pos)                   \
   (!NILP (current_buffer->enable_multibyte_characters) \
    ? FETCH_MULTIBYTE_CHAR ((pos))                      \
-   : unibyte_char_to_multibyte (FETCH_BYTE ((pos))))
+   : unibyte_to_multibyte_table[(FETCH_BYTE ((pos)))])
 
 \f
 /* Macros for accessing a character or byte,