summaryrefslogtreecommitdiff
path: root/src/binary-reader-ast.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-ast.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-ast.cc')
-rw-r--r--src/binary-reader-ast.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/binary-reader-ast.cc b/src/binary-reader-ast.cc
index 3552c998..d22c1f3f 100644
--- a/src/binary-reader-ast.cc
+++ b/src/binary-reader-ast.cc
@@ -32,14 +32,14 @@
return WABT_ERROR; \
} while (0)
-typedef struct LabelNode {
+struct LabelNode {
WabtLabelType label_type;
WabtExpr** first;
WabtExpr* last;
-} LabelNode;
+};
WABT_DEFINE_VECTOR(label_node, LabelNode);
-typedef struct Context {
+struct Context {
WabtBinaryErrorHandler* error_handler;
WabtModule* module;
@@ -47,7 +47,7 @@ typedef struct Context {
LabelNodeVector label_stack;
uint32_t max_depth;
WabtExpr** current_init_expr;
-} Context;
+};
static void handle_error(Context* ctx, uint32_t offset, const char* message);