summaryrefslogtreecommitdiffhomepage
path: root/mixlib/mix_vm_command.h
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2001-07-06 22:28:51 +0000
committerJose Antonio Ortega Ruiz <jao@gnu.org>2001-07-06 22:28:51 +0000
commitd23c118143cb68b290398c946c552c92cfa8a8ec (patch)
tree2a4d9c25ef4713e2eba42b2937ddd1f0195cb77d /mixlib/mix_vm_command.h
parent74342aaaa7bf55eddd07f19453f8b75902c07aa1 (diff)
downloadmdk-d23c118143cb68b290398c946c552c92cfa8a8ec.tar.gz
mdk-d23c118143cb68b290398c946c552c92cfa8a8ec.tar.bz2
(mix_vm_cmd_dispatcher_new_with_config) new constructor
tron/troff substituted by trace on|off
Diffstat (limited to 'mixlib/mix_vm_command.h')
-rw-r--r--mixlib/mix_vm_command.h12
1 files changed, 8 insertions, 4 deletions
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 <stdio.h>
#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