Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/gdb/gdb Now that rl_callback_handler_install's argu...



details:   https://anonhg.NetBSD.org/src/rev/9f9f38776b3a
branches:  trunk
changeset: 581133:9f9f38776b3a
user:      agc <agc%NetBSD.org@localhost>
date:      Fri May 27 15:34:16 2005 +0000

description:
Now that rl_callback_handler_install's argument has been fixed to conform
to the readline interface, no need to cast it erroneously for libedit.

diffstat:

 gnu/dist/gdb/gdb/event-top.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 80c89968c5eb -r 9f9f38776b3a gnu/dist/gdb/gdb/event-top.c
--- a/gnu/dist/gdb/gdb/event-top.c      Fri May 27 14:35:50 2005 +0000
+++ b/gnu/dist/gdb/gdb/event-top.c      Fri May 27 15:34:16 2005 +0000
@@ -191,7 +191,7 @@
       strcpy (a_prompt, PREFIX (0));
       strcat (a_prompt, gdb_prompt);
       strcat (a_prompt, SUFFIX (0));
-      rl_callback_handler_install (a_prompt, (VFunction *)input_handler);
+      rl_callback_handler_install (a_prompt, input_handler);
     }
   else
     display_gdb_prompt (0);
@@ -296,7 +296,7 @@
   if (async_command_editing_p)
     {
       rl_callback_handler_remove ();
-      rl_callback_handler_install (new_prompt, (VFunction *)input_handler);
+      rl_callback_handler_install (new_prompt, input_handler);
     }
   /* new_prompt at this point can be the top of the stack or the one passed in */
   else if (new_prompt)



Home | Main Index | Thread Index | Old Index