Reduce but don't eliminate excess extern "C".
commit399264331b399deeb448b285eba6f39e037d98bb
authorJay Krell <jaykrell@microsoft.com>
Sat, 8 Dec 2018 08:22:12 +0000 (8 00:22 -0800)
committerAleksey Kliger (λgeek) <akliger@gmail.com>
Tue, 18 Dec 2018 21:03:04 +0000 (18 16:03 -0500)
tree6874098ccddb4a32cf112b47bcacff92e5c20a45
parent2f0b4b859307fdbbcc1fafe3de76ca8c49ed46f3
Reduce but don't eliminate excess extern "C".

G_BEGIN_DECLS is almost never needed. Esp. around entire files.
It is for "the OS" and interoperation with some code that is still C, like profilers.

MONO_BEGIN_DECLS is often used in internal headers, in which case the same, but
not addressed here.

MONO_BEGIN_DECLS is often used in public headers, along with comprehensive
MONO_API, in which case it is redundant. This would be useful if/when mono
goes back to using .def files, which are a good idea for multiple reasons.
41 files changed:
mono/metadata/appdomain-icalls.h
mono/metadata/appdomain.c
mono/metadata/callspec.h
mono/metadata/console-io.h
mono/metadata/console-null.c
mono/metadata/console-unix.c
mono/metadata/console-win32-uwp.c
mono/metadata/console-win32.c
mono/metadata/filewatcher.h
mono/metadata/handle.h
mono/metadata/lock-tracer.h
mono/metadata/marshal.h
mono/metadata/method-builder.h
mono/metadata/monitor.h
mono/metadata/mono-basic-block.h
mono/metadata/mono-security.c
mono/metadata/rand.c
mono/metadata/security.h
mono/metadata/verify-internals.h
mono/metadata/w32file-unix-glob.h
mono/metadata/w32process-unix-bsd.c
mono/metadata/w32process-unix-default.c
mono/metadata/w32process-unix-osx.c
mono/metadata/w32process-unix.c
mono/metadata/w32process-win32-uwp.c
mono/metadata/w32process-win32.c
mono/metadata/w32process.c
mono/metadata/w32process.h
mono/mini/ir-emit.h
mono/mini/mini-wasm.h
mono/mini/trace.h
mono/utils/mono-coop-mutex.h
mono/utils/mono-coop-semaphore.h
mono/utils/mono-digest.h
mono/utils/mono-logger-internals.h
mono/utils/mono-os-mutex.h
mono/utils/mono-os-semaphore.h
mono/utils/mono-property-hash.h
mono/utils/mono-threads-coop.h
mono/utils/mono-utils-debug.h
mono/utils/mono-value-hash.h