diff options
author | Ben Smith <binjimin@gmail.com> | 2017-01-19 17:01:36 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-19 17:01:36 -0800 |
commit | aa49b05e65ebff47fb89c100f2e4e48f080c48a9 (patch) | |
tree | a20a029cead1c250c6bcc0a0f3214518960527e5 /src/tools/wasm-link.c | |
parent | 149b47d0928583bec6aa2abb2272dbde594964c0 (diff) | |
download | wabt-aa49b05e65ebff47fb89c100f2e4e48f080c48a9.tar.gz wabt-aa49b05e65ebff47fb89c100f2e4e48f080c48a9.tar.bz2 wabt-aa49b05e65ebff47fb89c100f2e4e48f080c48a9.zip |
Pass import_index to binary reader import callbacks (#283)
It was being passed before as "index", which is confusing because the
other callbacks have recently been changed to pass the
func/global/memory/table index instead.
Diffstat (limited to 'src/tools/wasm-link.c')
-rw-r--r-- | src/tools/wasm-link.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tools/wasm-link.c b/src/tools/wasm-link.c index 244be1eb..c152d24d 100644 --- a/src/tools/wasm-link.c +++ b/src/tools/wasm-link.c @@ -219,7 +219,8 @@ static WasmResult on_reloc(WasmRelocType type, return WASM_OK; } -static WasmResult on_import_func(uint32_t index, +static WasmResult on_import_func(uint32_t import_index, + uint32_t func_index, uint32_t sig_index, void* user_data) { InputBinary* binary = user_data; @@ -227,7 +228,8 @@ static WasmResult on_import_func(uint32_t index, return WASM_OK; } -static WasmResult on_import_global(uint32_t index, +static WasmResult on_import_global(uint32_t import_index, + uint32_t global_index, WasmType type, WasmBool mutable, void* user_data) { |