2003-02-12 Andrew Cagney <ac131313@redhat.com>

* event-top.c (cli_command_loop): Delete declaration.
	(_initialize_event_loop): Delete function setting event_loop_hook.
	* event-top.h (cli_command_loop): Declare.  Update copyright.
	(EVENT_TOP_H): Define.  Wrap header in #ifdef EVENT_TOP_H.
	* interps.c (current_interp_command_loop): When event_loop_p, call
	cli_command_loop.
This commit is contained in:
Andrew Cagney
2003-02-12 15:31:30 +00:00
parent 1cdac4ef8f
commit fe97fe9cf0
4 changed files with 22 additions and 14 deletions

View File

@@ -275,6 +275,8 @@ current_interp_command_loop (void)
else if (current_interpreter != NULL
&& current_interpreter->procs->command_loop_proc != NULL)
current_interpreter->procs->command_loop_proc (current_interpreter->data);
else if (event_loop_p)
cli_command_loop ();
else
command_loop ();
}