summaryrefslogtreecommitdiff
path: root/src/binary-reader-interpreter.cc
diff options
context:
space:
mode:
authorBen Smith <binjimin@gmail.com>2017-02-24 16:49:49 -0800
committerGitHub <noreply@github.com>2017-02-24 16:49:49 -0800
commit4e7541cb2d067eeebce5f13f85c0d4f67a685299 (patch)
tree95d4e943fb8a29ac8d704c1ee108d5c32b3258b5 /src/binary-reader-interpreter.cc
parent529015dc83b426659047689922eee7f9a34f9f15 (diff)
downloadwabt-4e7541cb2d067eeebce5f13f85c0d4f67a685299.tar.gz
wabt-4e7541cb2d067eeebce5f13f85c0d4f67a685299.tar.bz2
wabt-4e7541cb2d067eeebce5f13f85c0d4f67a685299.zip
Remove struct and enum typedefs (#317)
Diffstat (limited to 'src/binary-reader-interpreter.cc')
-rw-r--r--src/binary-reader-interpreter.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/binary-reader-interpreter.cc b/src/binary-reader-interpreter.cc
index ceff1454..fbe9fbfd 100644
--- a/src/binary-reader-interpreter.cc
+++ b/src/binary-reader-interpreter.cc
@@ -57,13 +57,13 @@ typedef uint32_t Uint32;
WABT_DEFINE_VECTOR(uint32, Uint32);
WABT_DEFINE_VECTOR(uint32_vector, Uint32Vector);
-typedef struct Label {
+struct Label {
uint32_t offset; /* branch location in the istream */
uint32_t fixup_offset;
-} Label;
+};
WABT_DEFINE_VECTOR(label, Label);
-typedef struct Context {
+struct Context {
WabtBinaryReader* reader;
WabtBinaryErrorHandler* error_handler;
WabtInterpreterEnvironment* env;
@@ -90,7 +90,7 @@ typedef struct Context {
bool is_host_import;
WabtInterpreterModule* host_import_module;
uint32_t import_env_index;
-} Context;
+};
static Label* get_label(Context* ctx, uint32_t depth) {
assert(depth < ctx->label_stack.size);