Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit61d1b7c

Browse files
authored
Remove non-existent PInvoke functions (#1205)
* Remove non-existent PInvoke functions* Remove PyObject_GC_New
2 parents29978d8 +b07d1ca commit61d1b7c

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

‎src/runtime/runtime.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -846,12 +846,6 @@ internal static IntPtr Py_CompileStringFlags(string str, string file, int start,
846846
[DllImport(_PythonDll,CallingConvention=CallingConvention.Cdecl)]
847847
internalstaticexternIntPtr PyCFunction_Call(IntPtrfunc,IntPtrargs,IntPtrkw);
848848

849-
[DllImport(_PythonDll,CallingConvention=CallingConvention.Cdecl)]
850-
internalstaticexternIntPtr PyInstance_New(IntPtrcls,IntPtrargs,IntPtrkw);
851-
852-
[DllImport(_PythonDll,CallingConvention=CallingConvention.Cdecl)]
853-
internalstaticexternIntPtr PyInstance_NewRaw(IntPtrcls,IntPtrdict);
854-
855849
[DllImport(_PythonDll,CallingConvention=CallingConvention.Cdecl)]
856850
internalstaticexternIntPtr PyMethod_New(IntPtrfunc,IntPtrself,IntPtrcls);
857851

@@ -1018,9 +1012,6 @@ internal static long PyObject_Size(IntPtr pointer)
10181012
// Python buffer API
10191013
//====================================================================
10201014

1021-
[DllImport(_PythonDll, CallingConvention= CallingConvention.Cdecl)]
1022-
internalstaticexternint PyObject_CheckBuffer(IntPtr obj);
1023-
10241015
[DllImport(_PythonDll, CallingConvention= CallingConvention.Cdecl)]
10251016
internalstaticexternint PyObject_GetBuffer(IntPtr exporter,ref Py_buffer view,int flags);
10261017

@@ -1793,9 +1784,6 @@ internal static IntPtr PyType_GenericAlloc(IntPtr type, long n)
17931784
[DllImport(_PythonDll, CallingConvention= CallingConvention.Cdecl)]
17941785
internalstaticextern IntPtr _PyObject_GetDictPtr(IntPtr obj);
17951786

1796-
[DllImport(_PythonDll, CallingConvention= CallingConvention.Cdecl)]
1797-
internalstaticextern IntPtr PyObject_GC_New(IntPtr tp);
1798-
17991787
[DllImport(_PythonDll, CallingConvention= CallingConvention.Cdecl)]
18001788
internalstaticexternvoid PyObject_GC_Del(IntPtr tp);
18011789

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp