aboutsummaryrefslogtreecommitdiff
path: root/readline/readline.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2000-03-15 11:53:33 +0000
committerEli Zaretskii <eliz@gnu.org>2000-03-15 11:53:33 +0000
commita44289013674874b517fa8959043330e962800db (patch)
treebede77fcff8ec09125ce3fa5e5b6777a03cfeac7 /readline/readline.c
parent992d0af0616c67c825bd89ca79095c37d1a2acfd (diff)
downloadgdb-a44289013674874b517fa8959043330e962800db.zip
gdb-a44289013674874b517fa8959043330e962800db.tar.gz
gdb-a44289013674874b517fa8959043330e962800db.tar.bz2
[__GO32__]: If HAVE_TEMIOS_H is defined, declare readline_default_bindings.
Don't undef HANDLE_SIGNALS if __DJGPP__ is defined. (readline_initialize_everything): [__GO32__]: Call readline_default_bindings if HAVE_TERMIOS_H is defined. (rl_refresh_line) [__GO32__]: Don't use this code if __DJGPP__ is defined.
Diffstat (limited to 'readline/readline.c')
-rw-r--r--readline/readline.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/readline/readline.c b/readline/readline.c
index 622811f..6bd25f7 100644
--- a/readline/readline.c
+++ b/readline/readline.c
@@ -163,14 +163,16 @@ static void readline_initialize_everything ();
static void start_using_history ();
static void bind_arrow_keys ();
-#if !defined (__GO32__)
+#if !defined (__GO32__) || defined (HAVE_TERMIOS_H)
static void readline_default_bindings ();
#endif /* !__GO32__ */
#if defined (__GO32__)
# include <go32.h>
# include <pc.h>
-# undef HANDLE_SIGNALS
+# if !defined (__DJGPP__)
+# undef HANDLE_SIGNALS
+# endif /* !__DJGPP__ */
#endif /* __GO32__ */
extern char *xmalloc (), *xrealloc ();
@@ -745,10 +747,10 @@ readline_initialize_everything ()
/* Initialize the terminal interface. */
_rl_init_terminal_io ((char *)NULL);
-#if !defined (__GO32__)
+#if !defined (__GO32__) || defined (HAVE_TERMIOS_H)
/* Bind tty characters to readline functions. */
readline_default_bindings ();
-#endif /* !__GO32__ */
+#endif /* !__GO32__ || HAVE_TERMIOS_H */
/* Initialize the function names. */
rl_initialize_funmap ();
@@ -1272,7 +1274,7 @@ rl_refresh_line (ignore1, ignore2)
_rl_move_vert (curr_line);
_rl_move_cursor_relative (0, the_line); /* XXX is this right */
-#if defined (__GO32__)
+#if defined (__GO32__) && !defined (__DJGPP__)
{
int row, col, width, row_start;
@@ -1281,9 +1283,9 @@ rl_refresh_line (ignore1, ignore2)
row_start = ScreenPrimary + (row * width);
memset (row_start + col, 0, (width - col) * 2);
}
-#else /* !__GO32__ */
+#else /* !__GO32__ || __DJGPP__ */
_rl_clear_to_eol (0); /* arg of 0 means to not use spaces */
-#endif /* !__GO32__ */
+#endif /* !__GO32__ || __DJGPP__ */
rl_forced_update_display ();
rl_display_fixed = 1;