@@ -290,13 +290,13 @@ internal static void Initialize()
290
290
291
291
#if PYTHON3
292
292
IntPtr dll = IntPtr . Zero ;
293
- if ( "__Internal" != Runtime . dll )
293
+ if ( Runtime . dll != "__Internal" )
294
294
{
295
295
NativeMethods . LoadLibrary ( Runtime . dll ) ;
296
296
}
297
297
_PyObject_NextNotImplemented = NativeMethods . GetProcAddress ( dll , "_PyObject_NextNotImplemented" ) ;
298
298
#if ! ( MONO_LINUX || MONO_OSX )
299
- if ( IntPtr . Zero != dll )
299
+ if ( dll != IntPtr . Zero )
300
300
{
301
301
NativeMethods . FreeLibrary ( dll ) ;
302
302
}
@@ -665,7 +665,10 @@ internal unsafe static extern IntPtr
665
665
[ DllImport ( Runtime . dll , CallingConvention = CallingConvention . Cdecl ,
666
666
ExactSpelling = true , CharSet = CharSet . Ansi ) ]
667
667
public unsafe static extern int
668
- Py_Main ( int argc , [ MarshalAsAttribute ( UnmanagedType . LPArray , ArraySubType = UnmanagedType . LPWStr ) ] string [ ] argv ) ;
668
+ Py_Main (
669
+ int argc ,
670
+ [ MarshalAs ( UnmanagedType . LPArray , ArraySubType = UnmanagedType . LPWStr ) ] string [ ] argv
671
+ ) ;
669
672
#elif PYTHON2
670
673
[ DllImport ( Runtime . dll , CallingConvention = CallingConvention . Cdecl ,
671
674
ExactSpelling = true , CharSet = CharSet . Ansi ) ]
@@ -739,7 +742,7 @@ internal unsafe static extern string
739
742
[ DllImport ( Runtime . dll , CallingConvention = CallingConvention . Cdecl ,
740
743
ExactSpelling = true , CharSet = CharSet . Ansi ) ]
741
744
internal unsafe static extern void
742
- Py_SetProgramName ( [ MarshalAsAttribute ( UnmanagedType . LPWStr ) ] string name ) ;
745
+ Py_SetProgramName ( [ MarshalAs ( UnmanagedType . LPWStr ) ] string name ) ;
743
746
744
747
[ DllImport ( Runtime . dll , CallingConvention = CallingConvention . Cdecl ,
745
748
ExactSpelling = true , CharSet = CharSet . Ansi ) ]
@@ -750,7 +753,7 @@ internal unsafe static extern string
750
753
[ DllImport ( Runtime . dll , CallingConvention = CallingConvention . Cdecl ,
751
754
ExactSpelling = true , CharSet = CharSet . Ansi ) ]
752
755
internal unsafe static extern void
753
- Py_SetPythonHome ( [ MarshalAsAttribute ( UnmanagedType . LPWStr ) ] string home ) ;
756
+ Py_SetPythonHome ( [ MarshalAs ( UnmanagedType . LPWStr ) ] string home ) ;
754
757
755
758
[ DllImport ( Runtime . dll , CallingConvention = CallingConvention . Cdecl ,
756
759
ExactSpelling = true , CharSet = CharSet . Ansi ) ]
@@ -761,7 +764,7 @@ internal unsafe static extern string
761
764
[ DllImport ( Runtime . dll , CallingConvention = CallingConvention . Cdecl ,
762
765
ExactSpelling = true , CharSet = CharSet . Ansi ) ]
763
766
internal unsafe static extern void
764
- Py_SetPath ( [ MarshalAsAttribute ( UnmanagedType . LPWStr ) ] string home ) ;
767
+ Py_SetPath ( [ MarshalAs ( UnmanagedType . LPWStr ) ] string home ) ;
765
768
#elif PYTHON2
766
769
[ DllImport ( Runtime . dll , CallingConvention = CallingConvention . Cdecl ,
767
770
ExactSpelling = true , CharSet = CharSet . Ansi ) ]
@@ -2081,7 +2084,7 @@ internal unsafe static extern IntPtr
2081
2084
internal unsafe static extern void
2082
2085
PySys_SetArgvEx (
2083
2086
int argc ,
2084
- [ MarshalAsAttribute ( UnmanagedType . LPArray , ArraySubType = UnmanagedType . LPWStr ) ] string [ ] argv ,
2087
+ [ MarshalAs ( UnmanagedType . LPArray , ArraySubType = UnmanagedType . LPWStr ) ] string [ ] argv ,
2085
2088
int updatepath
2086
2089
) ;
2087
2090
#elif PYTHON2
0 commit comments