summaryrefslogtreecommitdiff
path: root/wasm2c/examples/fac/main.c
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2022-04-14 07:58:11 +0000
committerGitHub <noreply@github.com>2022-04-14 00:58:11 -0700
commit67c7490aea420a98bd90005cffd7544b804530a0 (patch)
treed920ff346577d01891263d2e8ba672af901d923a /wasm2c/examples/fac/main.c
parent39022f8cd717ec5f219c56f4ebd07f016c457afc (diff)
downloadwabt-67c7490aea420a98bd90005cffd7544b804530a0.tar.gz
wabt-67c7490aea420a98bd90005cffd7544b804530a0.tar.bz2
wabt-67c7490aea420a98bd90005cffd7544b804530a0.zip
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
Diffstat (limited to 'wasm2c/examples/fac/main.c')
-rw-r--r--wasm2c/examples/fac/main.c4
1 files changed, 2 insertions, 2 deletions
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 <stdio.h>
#include <stdlib.h>
-/* 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);