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 Backout previos (no comment on this co...



details:   https://anonhg.NetBSD.org/src/rev/edcf30c65ff1
branches:  trunk
changeset: 551938:edcf30c65ff1
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Sep 14 08:54:40 2003 +0000

description:
Backout previos (no comment on this code).
XXX - someone should fix our libedit for the few hooks needed by gdb5.3
and we should get rid of this.

diffstat:

 gnu/dist/gdb/readline/chardefs.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r f50384587003 -r edcf30c65ff1 gnu/dist/gdb/readline/chardefs.h
--- a/gnu/dist/gdb/readline/chardefs.h  Sun Sep 14 07:58:17 2003 +0000
+++ b/gnu/dist/gdb/readline/chardefs.h  Sun Sep 14 08:54:40 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) & 0x80) == 0))
-#define META_CHAR(c) ((c) > meta_character_threshold && (c) <= largest_char)
+#define CTRL_CHAR(c) ((c) < control_character_threshold && (c) >= 0)
+#define META_CHAR(c) ((c) > meta_character_threshold)
 
 #define CTRL(c) ((c) & control_character_mask)
 #define META(c) ((c) | meta_character_bit)



Home | Main Index | Thread Index | Old Index