From d23c118143cb68b290398c946c552c92cfa8a8ec Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Fri, 6 Jul 2001 22:28:51 +0000 Subject: (mix_vm_cmd_dispatcher_new_with_config) new constructor tron/troff substituted by trace on|off --- mixlib/mix_vm_command.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'mixlib/mix_vm_command.h') diff --git a/mixlib/mix_vm_command.h b/mixlib/mix_vm_command.h index 71e5820..b1c6839 100644 --- a/mixlib/mix_vm_command.h +++ b/mixlib/mix_vm_command.h @@ -28,6 +28,7 @@ #include #include "mix.h" #include "mix_vm.h" +#include "mix_config.h" /* mix_vm_cmd_dispatcher encapsulates a virtual machine and helper objects, providing a command driven interface with output to @@ -61,8 +62,7 @@ typedef enum { MIX_CMD_CABP, /* clear all breakpoints */ MIX_CMD_WEVAL, /* evaluate a w-expression */ MIX_CMD_W2D, /* print word in decimal notation */ - MIX_CMD_TRON, /* enable instruction traces */ - MIX_CMD_TROFF, /* disble instruction traces */ + MIX_CMD_TRACE, /* enable/disable instruction traces */ MIX_CMD_INVALID, /* invalid command identifier */ } mix_vm_command_t; @@ -92,8 +92,12 @@ mix_vm_command_usage (mix_vm_command_t cmd); /* create a new command dispatcher */ extern mix_vm_cmd_dispatcher_t * -mix_vm_cmd_dispatcher_new (FILE *out_fd, /* output messages file */ - FILE *err_fd /* error messages file */); +mix_vm_cmd_dispatcher_new (FILE *out, /* output messages file */ + FILE *err /* error messages file */); + +extern mix_vm_cmd_dispatcher_t * +mix_vm_cmd_dispatcher_new_with_config (FILE *out, FILE *err, + mix_config_t *config); /* delete (does not close the fds in the constructor) */ extern void -- cgit v1.2.3