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-ast.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-ast.h')
-rw-r--r-- | src/binary-reader-ast.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/binary-reader-ast.h b/src/binary-reader-ast.h index 512a75ba..c4dec0af 100644 --- a/src/binary-reader-ast.h +++ b/src/binary-reader-ast.h @@ -19,13 +19,11 @@ #include "common.h" -struct WabtAllocator; struct WabtModule; struct WabtReadBinaryOptions; WABT_EXTERN_C_BEGIN -WabtResult wabt_read_binary_ast(struct WabtAllocator* allocator, - const void* data, +WabtResult wabt_read_binary_ast(const void* data, size_t size, const struct WabtReadBinaryOptions* options, WabtBinaryErrorHandler*, |