| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6787bfe commit 1109b5b
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -146,7 +146,7 @@ public void SetProgramName() | |||
| 146 | 146 | [Test] | |
| 147 | 147 | public void SetPythonPath() | |
| 148 | 148 | { | |
| 149 | - if (Runtime.Runtime.pyversion == "2.7") | ||
| 149 | + if (Runtime.Runtime._pyversion == "2.7") | ||
| 150 | 150 | { | |
| 151 | 151 | // Assert.Skip outputs as a warning (ie. pending to fix) | |
| 152 | 152 | Assert.Pass(); | |
@@ -166,7 +166,7 @@ public void SetPythonPath() | |||
| 166 | 166 | [Test] | |
| 167 | 167 | public void SetPythonPathExceptionOn27() | |
| 168 | 168 | { | |
| 169 | - if (Runtime.Runtime.pyversion != "2.7") | ||
| 169 | + if (Runtime.Runtime._pyversion != "2.7") | ||
| 170 | 170 | { | |
| 171 | 171 | Assert.Pass(); | |
| 172 | 172 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -91,13 +91,13 @@ public static int GetUnicodeByteLength(IntPtr p) | |||
| 91 | 91 | var len = 0; | |
| 92 | 92 | while (true) | |
| 93 | 93 | { | |
| 94 | - int c = Runtime.UCS == 2 | ||
| 94 | + int c = Runtime._UCS == 2 | ||
| 95 | 95 | ? Marshal.ReadInt16(p, len * 2) | |
| 96 | 96 | : Marshal.ReadInt32(p, len * 4); | |
| 97 | 97 | ||
| 98 | 98 | if (c == 0) | |
| 99 | 99 | { | |
| 100 | - return len * Runtime.UCS; | ||
| 100 | + return len * Runtime._UCS; | ||
| 101 | 101 | } | |
| 102 | 102 | checked | |
| 103 | 103 | { | |
@@ -163,7 +163,7 @@ public override IntPtr MarshalManagedToNative(object managedObj) | |||
| 163 | 163 | } | |
| 164 | 164 | ||
| 165 | 165 | int totalStrLength = argv.Sum(arg => arg.Length + 1); | |
| 166 | - int memSize = argv.Length * IntPtr.Size + totalStrLength * Runtime.UCS; | ||
| 166 | + int memSize = argv.Length * IntPtr.Size + totalStrLength * Runtime._UCS; | ||
| 167 | 167 | ||
| 168 | 168 | IntPtr mem = Marshal.AllocHGlobal(memSize); | |
| 169 | 169 | try | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,12 +20,14 @@ | |||
| 20 | 20 | <SignAssembly>false</SignAssembly> | |
| 21 | 21 | <AssemblyOriginatorKeyFile>..\pythonnet.snk</AssemblyOriginatorKeyFile> | |
| 22 | 22 | </PropertyGroup> | |
| 23 | - <PropertyGroup Condition=" '$(Platform)' == 'x86'"> | ||
| 23 | + <!--We can relax binding to platform because code references no any platform dependent assemblies--> | ||
| 24 | + <!--This will allows to use any build of this assebly as a compile ref assebly--> | ||
| 25 | + <!--<PropertyGroup Condition=" '$(Platform)' == 'x86'"> | ||
| 24 | 26 | <PlatformTarget>x86</PlatformTarget> | |
| 25 | 27 | </PropertyGroup> | |
| 26 | 28 | <PropertyGroup Condition=" '$(Platform)' == 'x64'"> | |
| 27 | 29 | <PlatformTarget>x64</PlatformTarget> | |
| 28 | - </PropertyGroup> | ||
| 30 | + </PropertyGroup>--> | ||
| 29 | 31 | <PropertyGroup Condition=" '$(Configuration)' == 'ReleaseMono'"> | |
| 30 | 32 | <DefineConstants Condition="'$(DefineConstants)' == ''">PYTHON2;PYTHON27;UCS4</DefineConstants> | |
| 31 | 33 | <Optimize>true</Optimize> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments