forked from Imagelibrary/binutils-gdb
2005-01-12 Andrew Cagney <cagney@gnu.org>
* exceptions.c (exception_none): New variable. * Makefile.in: Update dependencies. * interps.c: Include "exceptions.h". (interpreter_exec_cmd, interp_exec): Update to return "struct exception" * exceptions.h (no_exception): Declare. * tui/tui-interp.c (tui_exec): Update to return "struct exception" * mi/mi-interp.c: Include "exceptions.h". (mi_cmd_interpreter_exec, mi_interpreter_exec): Update to return 'struct exception". * cli/cli-interp.c (cli_interpreter_exec, safe_execute_command) (do_captured_execute_command): Update to use catch_exception. * interps.h: Include "exceptions.h". (interp_exec_ftype, interp_exec): Return "struct exception".
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
#ifndef INTERPS_H
|
||||
#define INTERPS_H
|
||||
|
||||
#include "exceptions.h"
|
||||
|
||||
struct ui_out;
|
||||
struct interp;
|
||||
|
||||
@@ -31,14 +33,15 @@ extern int interp_resume (struct interp *interp);
|
||||
extern int interp_suspend (struct interp *interp);
|
||||
extern int interp_prompt_p (struct interp *interp);
|
||||
extern int interp_exec_p (struct interp *interp);
|
||||
extern int interp_exec (struct interp *interp, const char *command);
|
||||
extern struct exception interp_exec (struct interp *interp,
|
||||
const char *command);
|
||||
extern int interp_quiet_p (struct interp *interp);
|
||||
|
||||
typedef void *(interp_init_ftype) (void);
|
||||
typedef int (interp_resume_ftype) (void *data);
|
||||
typedef int (interp_suspend_ftype) (void *data);
|
||||
typedef int (interp_prompt_p_ftype) (void *data);
|
||||
typedef int (interp_exec_ftype) (void *data, const char *command);
|
||||
typedef struct exception (interp_exec_ftype) (void *data, const char *command);
|
||||
typedef void (interp_command_loop_ftype) (void *data);
|
||||
|
||||
struct interp_procs
|
||||
|
||||
Reference in New Issue
Block a user