aboutsummaryrefslogtreecommitdiff
path: root/readline/readline.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2003-12-30 07:25:18 +0000
committerEli Zaretskii <eliz@gnu.org>2003-12-30 07:25:18 +0000
commitb0f0a30e296012e61e6b80787fa6a3b6add66d51 (patch)
tree0afcb7de9f2ce1095d023346692469020c60fed1 /readline/readline.c
parent6d53e9818ab42c294ba76dcc489feabba9e1e3aa (diff)
downloadgdb-b0f0a30e296012e61e6b80787fa6a3b6add66d51.zip
gdb-b0f0a30e296012e61e6b80787fa6a3b6add66d51.tar.gz
gdb-b0f0a30e296012e61e6b80787fa6a3b6add66d51.tar.bz2
* readline.c (rl_save_state, rl_restore_state): Support systems
that don't define SIGWINCH. * terminal.c (_rl_get_screen_size) [__DJGPP__]: Compute the screen width and height using console I/O. (_rl_init_terminal_io) [__MSDOS__]: Zero out all the _rl_term_* variables. Convert to _rl_* naming scheme. (_rl_set_cursor) [__MSDOS__]: Ifdef away this function. * display.c (_rl_move_vert) [__MSDOS__]: Don't use undeclared variable `l'. Use `delta' instead recomputing its value anew. Assign -delta to i instead of the other way around.
Diffstat (limited to 'readline/readline.c')
-rw-r--r--readline/readline.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/readline/readline.c b/readline/readline.c
index 28801f1..efa0bf8 100644
--- a/readline/readline.c
+++ b/readline/readline.c
@@ -933,7 +933,9 @@ rl_save_state (sp)
sp->macro = rl_executing_macro;
sp->catchsigs = rl_catch_signals;
+#if defined (SIGWINCH)
sp->catchsigwinch = rl_catch_sigwinch;
+#endif
return (0);
}
@@ -967,7 +969,9 @@ rl_restore_state (sp)
rl_executing_macro = sp->macro;
rl_catch_signals = sp->catchsigs;
+#if defined (SIGWINCH)
rl_catch_sigwinch = sp->catchsigwinch;
+#endif
return (0);
}