From 1c23ab81db8ea7fe05388adcc3ff8fe6ed7cb4a7 Mon Sep 17 00:00:00 2001 From: Andrei Alexandrescu Date: Sun, 11 Jun 2017 13:52:39 -0400 Subject: [PATCH] Adjust private --- std/process.d | 61 ++++++++++++++++++++++++--------------------------- 1 file changed, 29 insertions(+), 32 deletions(-) diff --git a/std/process.d b/std/process.d index 8e4f57fdfde..fa764b578d8 100644 --- a/std/process.d +++ b/std/process.d @@ -111,50 +111,47 @@ version (Win32) version (CRuntime_DigitalMars) version = DMC_RUNTIME; // Some of the following should be moved to druntime. private { - -// Microsoft Visual C Runtime (MSVCRT) declarations. -version (Windows) -{ - version (DMC_RUNTIME) { } else + // Microsoft Visual C Runtime (MSVCRT) declarations. + version (Windows) { - import core.stdc.stdint; - enum + version (DMC_RUNTIME) { } else { - STDIN_FILENO = 0, - STDOUT_FILENO = 1, - STDERR_FILENO = 2, + import core.stdc.stdint; + enum + { + STDIN_FILENO = 0, + STDOUT_FILENO = 1, + STDERR_FILENO = 2, + } } } -} -// POSIX API declarations. -version (Posix) -{ - version (OSX) + // POSIX API declarations. + version (Posix) { - private extern(C) char*** _NSGetEnviron() nothrow; - private const(char**) getEnvironPtr() @property @trusted + version (OSX) { - return *_NSGetEnviron; + extern(C) char*** _NSGetEnviron() nothrow; + const(char**) getEnvironPtr() @trusted + { + return *_NSGetEnviron; + } } - } - else - { - // Made available by the C runtime: - private extern(C) extern __gshared const char** environ; - private const(char**) getEnvironPtr() @property @trusted + else { - return environ; + // Made available by the C runtime: + extern(C) extern __gshared const char** environ; + const(char**) getEnvironPtr() @property @trusted + { + return environ; + } } - } - @system unittest - { - new Thread({assert(getEnvironPtr !is null);}).start(); + @system unittest + { + new Thread({assert(getEnvironPtr !is null);}).start(); + } } -} - - } // private