From 2b3a2e8c341395e4cb0f76db6ad4f31fb17720cc Mon Sep 17 00:00:00 2001 From: ericvergnaud Date: Thu, 1 Feb 2024 19:48:06 +0100 Subject: C API: Use segment names (#6254) Move from segment indexes to names. This is a breaking change to make the API more capable and consistent. An effort has been made to reduce the burden on C API users where possible (specifically, you can avoid providing names and let Binaryen make them for you, which will basically be numbers that match the indexes from before). Fixes #6247 --- test/example/relooper-merge2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/example/relooper-merge2.c') diff --git a/test/example/relooper-merge2.c b/test/example/relooper-merge2.c index d85f9d71c..c70ef5601 100644 --- a/test/example/relooper-merge2.c +++ b/test/example/relooper-merge2.c @@ -247,7 +247,8 @@ int main() { BinaryenTypeNone()); // memory - BinaryenSetMemory(module, 1, 1, "mem", NULL, NULL, NULL, NULL, 0, 0, 0, "0"); + BinaryenSetMemory( + module, 1, 1, "mem", NULL, NULL, NULL, NULL, NULL, 0, 0, 0, "0"); // optionally, optimize if (0) -- cgit v1.2.3