From 06f824b34df0a953ad7969db95c28d93c0c41cd5 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Mon, 5 Dec 2016 10:25:39 -0800 Subject: Rename `user` sections to `custom` sections (#231) * Rename `user` sections to `custom` sections As per https://github.com/WebAssembly/design/pull/87 --- src/binary-reader-objdump.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/binary-reader-objdump.c') 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, -- cgit v1.2.3