aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2008-06-05 05:45:16 +0000
committerStefan Monnier2008-06-05 05:45:16 +0000
commitc0dc8f64a9adeab709cf22468d80afe97d7ad50d (patch)
treea1a5bdad2e6d81bad62113286c93e246c17ab12b
parent8ba31f366fc04228330e55c9ae48f2a6ba73760f (diff)
downloademacs-c0dc8f64a9adeab709cf22468d80afe97d7ad50d.tar.gz
emacs-c0dc8f64a9adeab709cf22468d80afe97d7ad50d.zip
(MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
-rw-r--r--src/ChangeLog2
-rw-r--r--src/character.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 178e5b38969..c564066d0b2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12008-06-05 Stefan Monnier <monnier@iro.umontreal.ca> 12008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
4
3 * keymap.c (Vminibuffer_local_filename_must_match_map): 5 * keymap.c (Vminibuffer_local_filename_must_match_map):
4 Rename from Vminibuffer_local_must_match_filename_map. 6 Rename from Vminibuffer_local_must_match_filename_map.
5 (syms_of_keymap): 7 (syms_of_keymap):
diff --git a/src/character.h b/src/character.h
index ce36cdf85ff..ae87b3885d9 100644
--- a/src/character.h
+++ b/src/character.h
@@ -95,7 +95,8 @@ extern char unibyte_has_multibyte_table[256];
95 95
96 96
97/* If C is not ASCII, make it multibyte. It assumes C < 256. */ 97/* If C is not ASCII, make it multibyte. It assumes C < 256. */
98#define MAKE_CHAR_MULTIBYTE(c) ((c) = unibyte_to_multibyte_table[(c)]) 98#define MAKE_CHAR_MULTIBYTE(c) \
99 (eassert ((c) >= 0 && (c) < 256), (c) = unibyte_to_multibyte_table[(c)])
99 100
100/* This is the maximum byte length of multibyte form. */ 101/* This is the maximum byte length of multibyte form. */
101#define MAX_MULTIBYTE_LENGTH 5 102#define MAX_MULTIBYTE_LENGTH 5