[wasm] Add comments explaining the magic strings in mono-dl-wasm.c
authorRodrigo Kumpera <kumpera@gmail.com>
Tue, 22 Aug 2017 18:37:28 +0000 (11:37 -0700)
committerRodrigo Kumpera <kumpera@gmail.com>
Wed, 23 Aug 2017 20:57:05 +0000 (13:57 -0700)
mono/utils/mono-dl-wasm.c

index 029eb125bcbe7e7c8df789291acc29b22e1a1d5f..1d0dd98fda4c398784b9169c68dcdc4a9e0d3bd5 100644 (file)
@@ -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;
 }