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
commit4db4d2b0721b66df4724dae4a0d350758457eb35 (patch)
treed602340165f6ef7ee45f34674c969a02a8e6cf22 /mixlib/mix_vm_command.h
parent317a54ec28fe13fa5ba850486dcb922d146e4be3 (diff)
downloadmdk-4db4d2b0721b66df4724dae4a0d350758457eb35.tar.gz
mdk-4db4d2b0721b66df4724dae4a0d350758457eb35.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