Mercurial > emacs
changeset 95576:abcb40dd43a2
(MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Thu, 05 Jun 2008 05:45:16 +0000 |
parents | d34a432d5863 |
children | e283d325f1bc |
files | src/ChangeLog src/character.h |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Thu Jun 05 05:44:12 2008 +0000 +++ b/src/ChangeLog Thu Jun 05 05:45:16 2008 +0000 @@ -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):
--- a/src/character.h Thu Jun 05 05:44:12 2008 +0000 +++ b/src/character.h Thu Jun 05 05:45:16 2008 +0000 @@ -95,7 +95,8 @@ /* 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