diff options
author | Ben Smith <binjimin@gmail.com> | 2017-02-24 16:49:49 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-24 16:49:49 -0800 |
commit | 4e7541cb2d067eeebce5f13f85c0d4f67a685299 (patch) | |
tree | 95d4e943fb8a29ac8d704c1ee108d5c32b3258b5 /src/validator.cc | |
parent | 529015dc83b426659047689922eee7f9a34f9f15 (diff) | |
download | wabt-4e7541cb2d067eeebce5f13f85c0d4f67a685299.tar.gz wabt-4e7541cb2d067eeebce5f13f85c0d4f67a685299.tar.bz2 wabt-4e7541cb2d067eeebce5f13f85c0d4f67a685299.zip |
Remove struct and enum typedefs (#317)
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, ...) { |