summaryrefslogtreecommitdiff
path: root/src/binding-hash.h
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/binding-hash.h
parent529015dc83b426659047689922eee7f9a34f9f15 (diff)
downloadwabt-4e7541cb2d067eeebce5f13f85c0d4f67a685299.tar.gz
wabt-4e7541cb2d067eeebce5f13f85c0d4f67a685299.tar.bz2
wabt-4e7541cb2d067eeebce5f13f85c0d4f67a685299.zip
Remove struct and enum typedefs (#317)
Diffstat (limited to 'src/binding-hash.h')
-rw-r--r--src/binding-hash.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/binding-hash.h b/src/binding-hash.h
index e49cab12..df50c310 100644
--- a/src/binding-hash.h
+++ b/src/binding-hash.h
@@ -20,23 +20,23 @@
#include "common.h"
#include "vector.h"
-typedef struct WabtBinding {
+struct WabtBinding {
WabtLocation loc;
WabtStringSlice name;
int index;
-} WabtBinding;
+};
-typedef struct WabtBindingHashEntry {
+struct WabtBindingHashEntry {
WabtBinding binding;
struct WabtBindingHashEntry* next;
struct WabtBindingHashEntry* prev; /* only valid when this entry is unused */
-} WabtBindingHashEntry;
+};
WABT_DEFINE_VECTOR(binding_hash_entry, WabtBindingHashEntry);
-typedef struct WabtBindingHash {
+struct WabtBindingHash {
WabtBindingHashEntryVector entries;
WabtBindingHashEntry* free_head;
-} WabtBindingHash;
+};
WABT_EXTERN_C_BEGIN
WabtBinding* wabt_insert_binding(WabtBindingHash*, const WabtStringSlice*);