@@ -134,99 +134,5 @@ public TypeOffset39() { }
134134 public int qualname { get ; private set ; }
135135 public int ht_cached_keys { get ; private set ; }
136136 public int ht_module { get ; private set ; }
137-
138- }
139-
140- #if PYTHON39
141- [ StructLayout ( LayoutKind . Sequential ) ]
142- internal struct PyNumberMethods
143- {
144- public IntPtr nb_add ;
145- public IntPtr nb_subtract ;
146- public IntPtr nb_multiply ;
147- public IntPtr nb_remainder ;
148- public IntPtr nb_divmod ;
149- public IntPtr nb_power ;
150- public IntPtr nb_negative ;
151- public IntPtr nb_positive ;
152- public IntPtr nb_absolute ;
153- public IntPtr nb_bool ;
154- public IntPtr nb_invert ;
155- public IntPtr nb_lshift ;
156- public IntPtr nb_rshift ;
157- public IntPtr nb_and ;
158- public IntPtr nb_xor ;
159- public IntPtr nb_or ;
160- public IntPtr nb_int ;
161- public IntPtr nb_reserved ;
162- public IntPtr nb_float ;
163- public IntPtr nb_inplace_add ;
164- public IntPtr nb_inplace_subtract ;
165- public IntPtr nb_inplace_multiply ;
166- public IntPtr nb_inplace_remainder ;
167- public IntPtr nb_inplace_power ;
168- public IntPtr nb_inplace_lshift ;
169- public IntPtr nb_inplace_rshift ;
170- public IntPtr nb_inplace_and ;
171- public IntPtr nb_inplace_xor ;
172- public IntPtr nb_inplace_or ;
173- public IntPtr nb_floor_divide ;
174- public IntPtr nb_true_divide ;
175- public IntPtr nb_inplace_floor_divide ;
176- public IntPtr nb_inplace_true_divide ;
177- public IntPtr nb_index ;
178- public IntPtr nb_matrix_multiply ;
179- public IntPtr nb_inplace_matrix_multiply ;
180- }
181-
182- [ StructLayout ( LayoutKind . Sequential ) ]
183- internal struct PySequenceMethods
184- {
185- public IntPtr sq_length ;
186- public IntPtr sq_concat ;
187- public IntPtr sq_repeat ;
188- public IntPtr sq_item ;
189- public IntPtr was_sq_slice ;
190- public IntPtr sq_ass_item ;
191- public IntPtr was_sq_ass_slice ;
192- public IntPtr sq_contains ;
193- public IntPtr sq_inplace_concat ;
194- public IntPtr sq_inplace_repeat ;
195- }
196-
197- [ StructLayout ( LayoutKind . Sequential ) ]
198- internal struct PyMappingMethods
199- {
200- public IntPtr mp_length ;
201- public IntPtr mp_subscript ;
202- public IntPtr mp_ass_subscript ;
203137 }
204-
205- [ StructLayout ( LayoutKind . Sequential ) ]
206- internal struct PyAsyncMethods
207- {
208- public IntPtr am_await ;
209- public IntPtr am_aiter ;
210- public IntPtr am_anext ;
211- }
212-
213- [ StructLayout ( LayoutKind . Sequential ) ]
214- internal struct PyBufferProcs
215- {
216- public IntPtr bf_getbuffer ;
217- public IntPtr bf_releasebuffer ;
218- }
219-
220- internal static partial class SlotTypes
221- {
222- public static readonly Type [ ] Types = {
223- typeof ( PyNumberMethods ) ,
224- typeof ( PySequenceMethods ) ,
225- typeof ( PyMappingMethods ) ,
226- typeof ( PyAsyncMethods ) ,
227- typeof ( PyBufferProcs ) ,
228- } ;
229- }
230-
231- #endif
232138}
0 commit comments