summaryrefslogtreecommitdiff
path: root/src/binary-reader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/binary-reader.h')
-rw-r--r--src/binary-reader.h12
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,