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/emscripten-helpers.c | |
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/emscripten-helpers.c')
-rw-r--r-- | src/emscripten-helpers.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/emscripten-helpers.c b/src/emscripten-helpers.c index a4a159c4..4e8d92f6 100644 --- a/src/emscripten-helpers.c +++ b/src/emscripten-helpers.c @@ -19,12 +19,10 @@ #include <stddef.h> -#include "allocator.h" #include "ast.h" #include "binary-reader.h" #include "binary-writer.h" #include "common.h" -#include "stack-allocator.h" #include "stream.h" #include "writer.h" @@ -66,10 +64,6 @@ WABT_EXTERN_C_BEGIN /* clang-format off */ DEFINE_STRUCT( - WabtAllocator, allocator, - alloc, realloc, free, destroy, mark, reset_to_mark, print_stats) - -DEFINE_STRUCT( WabtBinaryErrorHandler, binary_error_handler, on_error, user_data) @@ -86,7 +80,7 @@ DEFINE_STRUCT0( DEFINE_STRUCT( WabtOutputBuffer, output_buffer, - allocator, start, size, capacity) + start, size, capacity) DEFINE_STRUCT( WabtReadBinaryOptions, read_binary_options, @@ -100,10 +94,6 @@ DEFINE_STRUCT( on_error, source_line_max_length, user_data) DEFINE_STRUCT( - WabtStackAllocator, stack_allocator, - allocator); - -DEFINE_STRUCT( WabtStream, stream, writer, offset, result, log_stream) |