diff options
author | Ben Smith <binji@chromium.org> | 2016-05-07 13:38:03 -0700 |
---|---|---|
committer | Ben Smith <binji@chromium.org> | 2016-05-07 13:38:03 -0700 |
commit | 92bfdd8738aafda989ef6169a9c70e1edf776dc7 (patch) | |
tree | 1a7898c9a4ad718c34beb448ce40f8d8f7b759fa /src/wasm-stack-allocator.c | |
parent | cdac11e839e116059b8f69c0313d0024ededb9b0 (diff) | |
download | wabt-92bfdd8738aafda989ef6169a9c70e1edf776dc7.tar.gz wabt-92bfdd8738aafda989ef6169a9c70e1edf776dc7.tar.bz2 wabt-92bfdd8738aafda989ef6169a9c70e1edf776dc7.zip |
use just one library, libwasm.a
Anything not used won't be linked in anyway. Also, make some internal
functions static.
Diffstat (limited to 'src/wasm-stack-allocator.c')
-rw-r--r-- | src/wasm-stack-allocator.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/wasm-stack-allocator.c b/src/wasm-stack-allocator.c index 7df136fb..335c8f1b 100644 --- a/src/wasm-stack-allocator.c +++ b/src/wasm-stack-allocator.c @@ -213,7 +213,7 @@ static void stack_free(WasmAllocator* allocator, chunk->current = p; } -void stack_destroy(WasmAllocator* allocator) { +static void stack_destroy(WasmAllocator* allocator) { WasmStackAllocator* stack_allocator = (WasmStackAllocator*)allocator; /* destroy the free chunks */ WasmStackAllocatorChunk* chunk = stack_allocator->next_free; @@ -232,7 +232,7 @@ void stack_destroy(WasmAllocator* allocator) { } } -WasmAllocatorMark stack_mark(WasmAllocator* allocator) { +static WasmAllocatorMark stack_mark(WasmAllocator* allocator) { WasmStackAllocator* stack_allocator = (WasmStackAllocator*)allocator; /* allocate the space for the mark, but copy the current stack state now, so @@ -256,7 +256,8 @@ WasmAllocatorMark stack_mark(WasmAllocator* allocator) { return allocated_mark; } -void stack_reset_to_mark(WasmAllocator* allocator, WasmAllocatorMark mark) { +static void stack_reset_to_mark(WasmAllocator* allocator, + WasmAllocatorMark mark) { WasmStackAllocator* stack_allocator = (WasmStackAllocator*)allocator; StackAllocatorMark* stack_mark = (StackAllocatorMark*)mark; WasmStackAllocatorChunk* chunk = stack_allocator->last; |