Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Erhardt <eric.erhardt@microsoft.com>2016-01-11 20:27:18 +0300
committerEric Erhardt <eric.erhardt@microsoft.com>2016-01-11 20:40:20 +0300
commit4ff49bf12ab66ca0305c3ee7d56291f68d888a46 (patch)
tree5e83d1986910e86eb7ea42ffc82654217cff7949 /Documentation/coding-guidelines
parentabc7236c4c6b7636ae472c3d20b7ce09b306d10e (diff)
Update interop-guidelines.md
Diffstat (limited to 'Documentation/coding-guidelines')
-rw-r--r--Documentation/coding-guidelines/interop-guidelines.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/coding-guidelines/interop-guidelines.md b/Documentation/coding-guidelines/interop-guidelines.md
index 8c63a91365..352bb25b57 100644
--- a/Documentation/coding-guidelines/interop-guidelines.md
+++ b/Documentation/coding-guidelines/interop-guidelines.md
@@ -285,6 +285,10 @@ one flavor's ABI and the shim's ABI.
API.
- At first, it seemed that we'd want to use 1:1 names throughout, but it
turns out there are many cases where being strictly 1:1 isn't practical.
+ - In order to reduce the chance of collisions when linking with CoreRT, all
+ exports should have a prefix that corresponds to the Libraries' name, e.g.
+ "SystemNative_" or "CryptoNative_" to make the method name more unique.
+ See https://github.com/dotnet/corefx/issues/4818.
- Stick to data types which are guaranteed not to vary in size across flavors.
- Use int32_t, int64_t, etc. from stdint.h and not int, long, etc.
- Use char* for ASCII or UTF-8 strings and uint8_t* for byte buffers.