Commits

alexrp  committed f7c678f

Fix version identifiers in phobos/phobos2.

  • Participants
  • Parent commits 51e67c3

Comments (0)

Files changed (11)

File d/phobos/internal/gc/gcgcc.d

     }
     else version (GC_Use_Stack_Fixed)
     {
-        version (darwin)
+        version (Darwin)
         {
             static if (size_t.sizeof == 4)
                 return cast(void*) 0xc0000000;

File d/phobos/internal/gc/gcgccextern.d

        .. the Mode can be a version instead of enum trick
     */
     
-    version (aix)
+    version (AIX)
     {
         alias _data Data_Start;
         alias _end Data_End;
         enum FM { One = 1, MinMax = 0, Two = 0 }
     }
-    else version (cygwin)
+    else version (Cygwin)
     {
         alias _data_start__ Data_Start;
         alias _data_end__ Data_End;
         */
         enum FM { One = 1, MinMax = 0, Two = 0 }
     }
-    else version (skyos)
+    else version (SkyOS)
     {
         alias _data_start__ Data_Start;
         alias _bss_end__ Data_End;

File d/phobos/std/c/stdio.d

     const FILE *stdaux = &_iob[3];      ///
     const FILE *stdprn = &_iob[4];      ///
 }
-else version (aix)
+else version (AIX)
 {
     // 32- and 64-bit
     extern FILE _iob[16];
     const FILE *stdout = &_iob[1];
     const FILE *stderr = &_iob[2];
 }
-else version (darwin)
+else version (Darwin)
 {
     static if (size_t.sizeof == 4)
     {
     int  _snprintf(char *,size_t,char *,...);
     int  _vsnprintf(char *,size_t,char *,va_list);
 }
-else version (darwin)
+else version (Darwin)
 {
     private import std.c.darwin.ldblcompat;
 

File d/phobos/std/c/stdlib.d

 double strtod(char *,char **);  /// ditto
 
 //real   strtold(char *,char **);
-version (darwin)
+version (Darwin)
     version (GNU_Have_strtold)
         version = darwin_strtold;
 version(PPC)

File d/phobos/std/conv.d

  * ditto
  */
 
-version (skyos)
+version (SkyOS)
 {
     float strtof(char * s, char ** ep) {
         return strtod(s, ep);
     char* sz;
 
     //writefln("toFloat('%s')", s);
-    version (aix)
+    version (AIX)
         s = toupper(s);
     sz = toStringz(s);
     if (std.ctype.isspace(*sz))
     char* sz;
 
     //writefln("toDouble('%s')", s);
-    version (aix)
+    version (AIX)
         s = toupper(s);
     sz = toStringz(s);
     if (std.ctype.isspace(*sz))
     char* sz;
 
     //writefln("toReal('%s')", s);
-    version (aix)
+    version (AIX)
         s = toupper(s);
     sz = toStringz(s);
     if (std.ctype.isspace(*sz))

File d/phobos/std/cpuid.d

 version(D_InlineAsm_X86_64)
     version = Asm;
 
-version (darwin)
+version (Darwin)
 {
     extern(C) int sysctlbyname(char *name, void *oldp, size_t *oldlenp, void *newp, size_t newlen);
 

File d/phobos/std/format.d

 
 /* ======================== Unit Tests ====================================== */
 
-version (skyos)
+version (SkyOS)
     version = no_hexfloat;
 
 import std.stdio;//xx

File d/phobos/std/loader.d

         alias void* HModule_;
     }
 }
-else version(darwin)
+else version(Darwin)
 {
     extern(C)
     {
         return mi.m_name;
     }
 }
-else version(darwin)
+else version(Darwin)
 {
     private class ExeModuleInfo
     {
             {
                 m_hModule = ExeModule_AddRef(hModule);
             }
-            else version (darwin)
+            else version (Darwin)
             {
                 m_hModule = ExeModule_AddRef(hModule);
             }
             if (null is m_hModule)
                 throw new ExeModuleException(ExeModule_Error());
         }
-        else version (darwin)
+        else version (Darwin)
         {
             m_hModule = ExeModule_Load(moduleName);
             if (null is m_hModule)
             {
                 ExeModule_Release(m_hModule);
             }
-            else version (darwin)
+            else version (Darwin)
             {
                 ExeModule_Release(m_hModule);
             }
                 throw new ExeModuleException(ExeModule_Error());
             }
         }
-        else version (darwin)
+        else version (Darwin)
         {
             void *symbol = ExeModule_GetSymbol(m_hModule, symbolName);
 
         {
             return ExeModule_GetPath_(m_hModule);
         }
-        else version (darwin)
+        else version (Darwin)
         {
             return ExeModule_GetPath_(m_hModule);
         }

File d/phobos/std/socket.d

         version = BsdSockets;
 }
 
-version (skyos) { /* nothging */ }
+version (SkyOs) { /* nothging */ }
 else
 {
     version = have_getservbyport;

File d/phobos/std/thread.d

 private import std.c.unix.unix;
 private import gcc.builtins;
 
-version (skyos)
+version (SkyOS)
 {
     private import std.c.skyos.skyos;
     private import std.c.skyos.compat;
         // before pthread_create() sets it.
         t.id = pthread_self();
 
-        version(skyos)
+        version(SkyOS)
             installSignalHandlers();
 
         t.stackBottom = getESP();

File d/phobos2/gcc/ldblcompat.d

 
 module gcc.ldblcompat;
 
-version (darwin)
+version (Darwin)
 {
     version (PPC)
         version = GNU_CheckLongDoubleFormat;
 
 version (GNU_UseLongDoubleFormat128)
 {
-    version (darwin)
+    version (Darwin)
     {
         // Currently, the following test from cdefs.h is not supported:
         //# if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__-0 < 1040
 }
 else
 {
-    version (darwin)
+    version (Darwin)
     {
         invariant __DARWIN_LDBL_COMPAT  = "";
         invariant __DARWIN_LDBL_COMPAT2 = "";