Replace INSIDE_CLR with CORECLR (dotnet/coreclr#9841)
authorDan Moseley <danmose@microsoft.com>
Tue, 28 Feb 2017 03:39:04 +0000 (19:39 -0800)
committerJan Kotas <jkotas@microsoft.com>
Tue, 28 Feb 2017 03:39:04 +0000 (19:39 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/dd40277667a6e72f499be8eded2122b69049e2e7

src/coreclr/src/mscorlib/System.Private.CoreLib.csproj
src/coreclr/src/mscorlib/corefx/System/Globalization/Calendar.cs
src/coreclr/src/mscorlib/corefx/System/Globalization/CultureData.cs
src/coreclr/src/mscorlib/corefx/System/Globalization/CultureInfo.cs
src/coreclr/src/mscorlib/corefx/System/Globalization/DateTimeFormatInfo.cs
src/coreclr/src/mscorlib/corefx/System/Globalization/DateTimeFormatInfoScanner.cs
src/coreclr/src/mscorlib/src/System/Diagnostics/Contracts/Contracts.cs

index dc935ef..b1086fc 100644 (file)
@@ -34,7 +34,7 @@
     <GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
     <SignAssembly>true</SignAssembly>
     <DelaySign>true</DelaySign>
-    <DefineConstants>$(DefineConstants);CORECLR;_USE_NLS_PLUS_TABLE;RESOURCE_SATELLITE_CONFIG;INSIDE_CLR;CODE_ANALYSIS_BASELINE</DefineConstants>
+    <DefineConstants>$(DefineConstants);CORECLR;_USE_NLS_PLUS_TABLE;RESOURCE_SATELLITE_CONFIG;CODE_ANALYSIS_BASELINE</DefineConstants>
   </PropertyGroup>
   <!-- Add Serviceable attribute to the project's metadata -->
   <ItemGroup>
index 0ff5040..274fe6f 100644 (file)
@@ -64,7 +64,7 @@ namespace System.Globalization
         [OptionalField(VersionAdded = 2)]
         private bool _isReadOnly = false;
 
-#if INSIDE_CLR
+#if CORECLR
         internal const CalendarId CAL_HEBREW = CalendarId.HEBREW;
         internal const CalendarId CAL_HIJRI = CalendarId.HIJRI;
         internal const CalendarId CAL_JAPAN = CalendarId.JAPAN;
index c15a77c..0a8c2c2 100644 (file)
@@ -10,7 +10,7 @@ using System.Threading;
 namespace System.Globalization
 {
 
-#if INSIDE_CLR
+#if CORECLR
     using StringStringDictionary = Dictionary<string, string>;
     using StringCultureDataDictionary = Dictionary<string, CultureData>;
     using LcidToCultureNameDictionary = Dictionary<int, string>;
index da084d1..0c937f2 100644 (file)
@@ -35,7 +35,7 @@ using System.Threading;
 namespace System.Globalization
 {
 
-#if INSIDE_CLR
+#if CORECLR
     using StringCultureInfoDictionary = Dictionary<string, CultureInfo>;
     using StringLcidDictionary = Dictionary<int, CultureInfo>;
     
index b79ce90..bcfd6b1 100644 (file)
@@ -2724,7 +2724,7 @@ namespace System.Globalization
         ////////////////////////////////////////////////////////////////////////
 
         private static bool TryParseHebrewNumber(
-#if INSIDE_CLR
+#if CORECLR
             ref __DTString str,
 #else
             ref FormatProvider.__DTString str,
@@ -2783,7 +2783,7 @@ namespace System.Globalization
         }
 
         internal bool Tokenize(TokenType TokenMask, out TokenType tokenType, out int tokenValue,
-#if INSIDE_CLR 
+#if CORECLR 
                                ref __DTString str)
 #else
                                ref FormatProvider.__DTString str)
@@ -3036,7 +3036,7 @@ namespace System.Globalization
         }
     }
 
-#if !INSIDE_CLR
+#if !CORECLR
     //
     // The type of token that will be returned by DateTimeFormatInfo.Tokenize().
     //
index 9cbc19f..ddf7d7e 100644 (file)
@@ -28,7 +28,7 @@ using System.Text;
 namespace System.Globalization
 {
 
-#if INSIDE_CLR
+#if CORECLR
     using StringStringDictionary = Dictionary<string, string>;
     using StringList = List<string>;
 #else
index b768e4d..fe1afe3 100644 (file)
@@ -639,7 +639,7 @@ namespace System.Diagnostics.Contracts
         public static bool ForAll(int fromInclusive, int toExclusive, Predicate<int> predicate)
         {
             if (fromInclusive > toExclusive)
-#if INSIDE_CLR
+#if CORECLR
                 throw new ArgumentException(Environment.GetResourceString("Argument_ToExclusiveLessThanFromExclusive"));
 #else
                 throw new ArgumentException("fromInclusive must be less than or equal to toExclusive.");
@@ -699,7 +699,7 @@ namespace System.Diagnostics.Contracts
         public static bool Exists(int fromInclusive, int toExclusive, Predicate<int> predicate)
         {
             if (fromInclusive > toExclusive)
-#if INSIDE_CLR
+#if CORECLR
                 throw new ArgumentException(Environment.GetResourceString("Argument_ToExclusiveLessThanFromExclusive"));
 #else
                 throw new ArgumentException("fromInclusive must be less than or equal to toExclusive.");