diff options
author | Ben Smith <binjimin@gmail.com> | 2017-02-17 16:32:20 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-17 16:32:20 -0800 |
commit | 28a34066f1f17b0ce7070835a695f621bdfe59ea (patch) | |
tree | 3396db9aad083b616981f2980953afd1b654be85 /src/binary-reader.h | |
parent | 6463c765207e37e55af1c6a06ff06071af131c07 (diff) | |
download | wabt-28a34066f1f17b0ce7070835a695f621bdfe59ea.tar.gz wabt-28a34066f1f17b0ce7070835a695f621bdfe59ea.tar.bz2 wabt-28a34066f1f17b0ce7070835a695f621bdfe59ea.zip |
Remove WabtAllocator (#307)
It complicates the code everywhere. It's faster to use a stack
allocator, but not worth the trouble for maintainability.
Diffstat (limited to 'src/binary-reader.h')
-rw-r--r-- | src/binary-reader.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/binary-reader.h b/src/binary-reader.h index b202c4c4..5f13ebe5 100644 --- a/src/binary-reader.h +++ b/src/binary-reader.h @@ -23,8 +23,6 @@ #include "binary.h" #include "common.h" -struct WabtAllocator; - #define WABT_READ_BINARY_OPTIONS_DEFAULT \ { NULL, WABT_FALSE } @@ -324,8 +322,7 @@ typedef struct WabtBinaryReader { } WabtBinaryReader; WABT_EXTERN_C_BEGIN -WabtResult wabt_read_binary(struct WabtAllocator* allocator, - const void* data, +WabtResult wabt_read_binary(const void* data, size_t size, WabtBinaryReader* reader, uint32_t num_function_passes, |