From 63795c0ce8e564344a791c6406a6862525b7309f Mon Sep 17 00:00:00 2001 From: Rodrigo Kumpera Date: Tue, 22 Aug 2017 11:37:28 -0700 Subject: [PATCH] [wasm] Add comments explaining the magic strings in mono-dl-wasm.c --- mono/utils/mono-dl-wasm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mono/utils/mono-dl-wasm.c b/mono/utils/mono-dl-wasm.c index 029eb125bcb..1d0dd98fda4 100644 --- a/mono/utils/mono-dl-wasm.c +++ b/mono/utils/mono-dl-wasm.c @@ -17,11 +17,12 @@ mono_dl_get_so_prefix (void) { return ""; } + const char ** mono_dl_get_so_suffixes (void) { static const char *suffixes[] = { - ".wasm", + ".wasm", //we only recognize .wasm files for DSOs. "", }; return suffixes; @@ -30,7 +31,7 @@ mono_dl_get_so_suffixes (void) int mono_dl_get_executable_path (char *buf, int buflen) { - strncpy (buf, "/managed", buflen); + strncpy (buf, "/managed", buflen); //This is a packaging convertion that our tooling should enforce return 0; } -- 2.25.1