1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-20 10:23:57 +00:00

(MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.

This commit is contained in:
Stefan Monnier 2008-06-05 05:45:16 +00:00
parent 8ba31f366f
commit c0dc8f64a9
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
* character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
* keymap.c (Vminibuffer_local_filename_must_match_map):
Rename from Vminibuffer_local_must_match_filename_map.
(syms_of_keymap):

View File

@ -95,7 +95,8 @@ extern char unibyte_has_multibyte_table[256];
/* If C is not ASCII, make it multibyte. It assumes C < 256. */
#define MAKE_CHAR_MULTIBYTE(c) ((c) = unibyte_to_multibyte_table[(c)])
#define MAKE_CHAR_MULTIBYTE(c) \
(eassert ((c) >= 0 && (c) < 256), (c) = unibyte_to_multibyte_table[(c)])
/* This is the maximum byte length of multibyte form. */
#define MAX_MULTIBYTE_LENGTH 5