Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/dist/gdb/readline Bring in two lines from readline-4.3. ...
details: https://anonhg.NetBSD.org/src/rev/f00bce6a7f4c
branches: trunk
changeset: 551841:f00bce6a7f4c
user: martin <martin%NetBSD.org@localhost>
date: Fri Sep 12 22:36:38 2003 +0000
description:
Bring in two lines from readline-4.3. Not all chars are signed.
diffstat:
gnu/dist/gdb/readline/chardefs.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (14 lines):
diff -r c1eed952c8c8 -r f00bce6a7f4c gnu/dist/gdb/readline/chardefs.h
--- a/gnu/dist/gdb/readline/chardefs.h Fri Sep 12 22:09:04 2003 +0000
+++ b/gnu/dist/gdb/readline/chardefs.h Fri Sep 12 22:36:38 2003 +0000
@@ -51,8 +51,8 @@
#define meta_character_bit 0x080 /* x0000000, must be on. */
#define largest_char 255 /* Largest character value. */
-#define CTRL_CHAR(c) ((c) < control_character_threshold && (c) >= 0)
-#define META_CHAR(c) ((c) > meta_character_threshold)
+#define CTRL_CHAR(c) ((c) < control_character_threshold && (((c) & 0x80) == 0))
+#define META_CHAR(c) ((c) > meta_character_threshold && (c) <= largest_char)
#define CTRL(c) ((c) & control_character_mask)
#define META(c) ((c) | meta_character_bit)
Home |
Main Index |
Thread Index |
Old Index