summaryrefslogtreecommitdiff
path: root/src/tools/wasm-interp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/wasm-interp.cc')
-rw-r--r--src/tools/wasm-interp.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/tools/wasm-interp.cc b/src/tools/wasm-interp.cc
index 5cbf7572..05642d47 100644
--- a/src/tools/wasm-interp.cc
+++ b/src/tools/wasm-interp.cc
@@ -53,10 +53,10 @@ static WabtStream s_log_stream;
#define NOPE WABT_OPTION_NO_ARGUMENT
#define YEP WABT_OPTION_HAS_ARGUMENT
-typedef enum RunVerbosity {
+enum RunVerbosity {
RUN_QUIET = 0,
RUN_VERBOSE = 1,
-} RunVerbosity;
+};
enum {
FLAG_VERBOSE,
@@ -636,7 +636,7 @@ WABT_DEFINE_VECTOR(interpreter_thread, WabtInterpreterThread);
/* An extremely simple JSON parser that only knows how to parse the expected
* format from wast2wabt. */
-typedef struct Context {
+struct Context {
WabtInterpreterEnvironment env;
WabtInterpreterThread thread;
WabtInterpreterModule* last_module;
@@ -654,19 +654,19 @@ typedef struct Context {
/* Test info */
int passed;
int total;
-} Context;
+};
-typedef enum ActionType {
+enum ActionType {
ACTION_TYPE_INVOKE,
ACTION_TYPE_GET,
-} ActionType;
+};
-typedef struct Action {
+struct Action {
ActionType type;
WabtStringSlice module_name;
WabtStringSlice field_name;
WabtInterpreterTypedValueVector args;
-} Action;
+};
#define CHECK_RESULT(x) \
do { \