From 67c7490aea420a98bd90005cffd7544b804530a0 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Thu, 14 Apr 2022 07:58:11 +0000 Subject: Remove signature mangling from wasm2c output (#1896) This effectively means that we no longer support imports that are overloaded by signature only. This is not something that we need to support in order to support the core wasm spec. This feature is available in the JS embedding but there is no good reason (AFAICT) to support it in wasm2c, and this simplifies the generated code. Fixes #1858 --- wasm2c/examples/fac/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wasm2c/examples/fac/main.c') diff --git a/wasm2c/examples/fac/main.c b/wasm2c/examples/fac/main.c index 55255b5d..fe79aa94 100644 --- a/wasm2c/examples/fac/main.c +++ b/wasm2c/examples/fac/main.c @@ -1,7 +1,7 @@ #include #include -/* Uncomment this to define fac_init and fac_Z_facZ_ii instead. */ +/* Uncomment this to define fac_init and fac_Z_fac instead. */ /* #define WASM_RT_MODULE_PREFIX fac_ */ #include "fac.h" @@ -22,7 +22,7 @@ int main(int argc, char** argv) { init(); /* Call `fac`, using the mangled name. */ - u32 result = Z_facZ_ii(x); + u32 result = Z_fac(x); /* Print the result. */ printf("fac(%u) -> %u\n", x, result); -- cgit v1.2.3