From 28a34066f1f17b0ce7070835a695f621bdfe59ea Mon Sep 17 00:00:00 2001 From: Ben Smith Date: Fri, 17 Feb 2017 16:32:20 -0800 Subject: Remove WabtAllocator (#307) It complicates the code everywhere. It's faster to use a stack allocator, but not worth the trouble for maintainability. --- src/binary-reader-objdump.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/binary-reader-objdump.h') diff --git a/src/binary-reader-objdump.h b/src/binary-reader-objdump.h index 3e029fcd..f0b55e6a 100644 --- a/src/binary-reader-objdump.h +++ b/src/binary-reader-objdump.h @@ -21,7 +21,6 @@ #include "stream.h" #include "vector.h" -struct WabtAllocator; struct WabtModule; struct WabtReadBinaryOptions; @@ -58,8 +57,7 @@ typedef struct WabtObjdumpOptions { WABT_EXTERN_C_BEGIN -WabtResult wabt_read_binary_objdump(struct WabtAllocator* allocator, - const uint8_t* data, +WabtResult wabt_read_binary_objdump(const uint8_t* data, size_t size, WabtObjdumpOptions* options); -- cgit v1.2.3