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/binary-reader.h | |
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/binary-reader.h')
-rw-r--r-- | src/binary-reader.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/binary-reader.h b/src/binary-reader.h index dab830d5..6007ac81 100644 --- a/src/binary-reader.h +++ b/src/binary-reader.h @@ -26,19 +26,19 @@ #define WABT_READ_BINARY_OPTIONS_DEFAULT \ { nullptr, false } -typedef struct WabtReadBinaryOptions { +struct WabtReadBinaryOptions { struct WabtStream* log_stream; bool read_debug_names; -} WabtReadBinaryOptions; +}; -typedef struct WabtBinaryReaderContext { +struct WabtBinaryReaderContext { const uint8_t* data; size_t size; size_t offset; void* user_data; -} WabtBinaryReaderContext; +}; -typedef struct WabtBinaryReader { +struct WabtBinaryReader { void* user_data; void (*on_error)(WabtBinaryReaderContext* ctx, const char* message); @@ -319,7 +319,7 @@ typedef struct WabtBinaryReader { WabtResult (*on_init_expr_i64_const_expr)(uint32_t index, uint64_t value, void* user_data); -} WabtBinaryReader; +}; WABT_EXTERN_C_BEGIN WabtResult wabt_read_binary(const void* data, |