summaryrefslogtreecommitdiff
path: root/src/binary-reader-objdump.c
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2016-12-05 10:25:39 -0800
committerGitHub <noreply@github.com>2016-12-05 10:25:39 -0800
commit06f824b34df0a953ad7969db95c28d93c0c41cd5 (patch)
treefa904c0fd77cb0a67dffe4d174dc7de907ff6208 /src/binary-reader-objdump.c
parent4ee278d04664ebdb84ff5a6c7d37515fe1857ea3 (diff)
downloadwabt-06f824b34df0a953ad7969db95c28d93c0c41cd5.tar.gz
wabt-06f824b34df0a953ad7969db95c28d93c0c41cd5.tar.bz2
wabt-06f824b34df0a953ad7969db95c28d93c0c41cd5.zip
Rename `user` sections to `custom` sections (#231)
* Rename `user` sections to `custom` sections As per https://github.com/WebAssembly/design/pull/87
Diffstat (limited to 'src/binary-reader-objdump.c')
-rw-r--r--src/binary-reader-objdump.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/binary-reader-objdump.c b/src/binary-reader-objdump.c
index 993fbbd6..3da697fd 100644
--- a/src/binary-reader-objdump.c
+++ b/src/binary-reader-objdump.c
@@ -97,11 +97,11 @@ static WasmResult begin_section(Context* ctx,
return WASM_OK;
}
-static WasmResult begin_user_section(WasmBinaryReaderContext* ctx,
- uint32_t size,
- WasmStringSlice section_name) {
+static WasmResult begin_custom_section(WasmBinaryReaderContext* ctx,
+ uint32_t size,
+ WasmStringSlice section_name) {
Context* context = ctx->user_data;
- if (begin_section(context, "USER", ctx->offset, size))
+ if (begin_section(context, "CUSTOM", ctx->offset, size))
return WASM_ERROR;
if (context->options->mode == WASM_DUMP_DETAILS)
printf(" - name: \"" PRIstringslice "\"\n", WASM_PRINTF_STRING_SLICE_ARG(section_name));
@@ -583,7 +583,7 @@ static WasmBinaryReader s_binary_reader = {
.on_error = on_error,
// User section
- .begin_user_section = begin_user_section,
+ .begin_custom_section = begin_custom_section,
// Signature section
.begin_signature_section = begin_signature_section,