diff options
Diffstat (limited to 'src/validator.cc')
-rw-r--r-- | src/validator.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/validator.cc b/src/validator.cc index d7bbdaf7..61fb484f 100644 --- a/src/validator.cc +++ b/src/validator.cc @@ -28,21 +28,21 @@ #include "binary-reader.h" #include "type-checker.h" -typedef enum ActionResultKind { +enum ActionResultKind { ACTION_RESULT_KIND_ERROR, ACTION_RESULT_KIND_TYPES, ACTION_RESULT_KIND_TYPE, -} ActionResultKind; +}; -typedef struct ActionResult { +struct ActionResult { ActionResultKind kind; union { const WabtTypeVector* types; WabtType type; }; -} ActionResult; +}; -typedef struct Context { +struct Context { WabtSourceErrorHandler* error_handler; WabtAstLexer* lexer; const WabtScript* script; @@ -55,7 +55,7 @@ typedef struct Context { WabtTypeChecker typechecker; const WabtLocation* expr_loc; /* Cached for access by on_typechecker_error */ WabtResult result; -} Context; +}; static void WABT_PRINTF_FORMAT(3, 4) print_error(Context* ctx, const WabtLocation* loc, const char* fmt, ...) { |