|
249 | 249 | weakreflist::PyPtr = PyNULL |
250 | 250 | end |
251 | 251 |
|
252 | | -@kwdef struct PyTypeObject |
253 | | - ob_base::PyVarObject = PyVarObject() |
254 | | - name::Cstring = C_NULL |
255 | | - |
256 | | - basicsize::Py_ssize_t = 0 |
257 | | - itemsize::Py_ssize_t = 0 |
258 | | - |
259 | | - dealloc::Ptr{Cvoid} = C_NULL |
260 | | - vectorcall_offset::Py_ssize_t = 0 |
261 | | - getattr::Ptr{Cvoid} = C_NULL |
262 | | - setattr::Ptr{Cvoid} = C_NULL |
263 | | - as_async::Ptr{Cvoid} = C_NULL |
264 | | - repr::Ptr{Cvoid} = C_NULL |
265 | | - |
266 | | - as_number::Ptr{PyNumberMethods} = C_NULL |
267 | | - as_sequence::Ptr{PySequenceMethods} = C_NULL |
268 | | - as_mapping::Ptr{PyMappingMethods} = C_NULL |
269 | | - |
270 | | - hash::Ptr{Cvoid} = C_NULL |
271 | | - call::Ptr{Cvoid} = C_NULL |
272 | | - str::Ptr{Cvoid} = C_NULL |
273 | | - getattro::Ptr{Cvoid} = C_NULL |
274 | | - setattro::Ptr{Cvoid} = C_NULL |
275 | | - |
276 | | - as_buffer::Ptr{PyBufferProcs} = C_NULL |
277 | | - |
278 | | - flags::Culong = 0 |
279 | | - |
280 | | - doc::Cstring = C_NULL |
281 | | - |
282 | | - traverse::Ptr{Cvoid} = C_NULL |
283 | | - |
284 | | - clear::Ptr{Cvoid} = C_NULL |
285 | | - |
286 | | - richcompare::Ptr{Cvoid} = C_NULL |
287 | | - |
288 | | - weaklistoffset::Py_ssize_t = 0 |
289 | | - |
290 | | - iter::Ptr{Cvoid} = C_NULL |
291 | | - iternext::Ptr{Cvoid} = C_NULL |
292 | | - |
293 | | - methods::Ptr{PyMethodDef} = C_NULL |
294 | | - members::Ptr{PyMemberDef} = C_NULL |
295 | | - getset::Ptr{PyGetSetDef} = C_NULL |
296 | | - base::PyPtr = C_NULL |
297 | | - dict::PyPtr = C_NULL |
298 | | - descr_get::Ptr{Cvoid} = C_NULL |
299 | | - descr_set::Ptr{Cvoid} = C_NULL |
300 | | - dictoffset::Py_ssize_t = 0 |
301 | | - init::Ptr{Cvoid} = C_NULL |
302 | | - alloc::Ptr{Cvoid} = C_NULL |
303 | | - new::Ptr{Cvoid} = C_NULL |
304 | | - free::Ptr{Cvoid} = C_NULL |
305 | | - is_gc::Ptr{Cvoid} = C_NULL |
306 | | - bases::PyPtr = C_NULL |
307 | | - mro::PyPtr = C_NULL |
308 | | - cache::PyPtr = C_NULL |
309 | | - subclasses::PyPtr = C_NULL |
310 | | - weaklist::PyPtr = C_NULL |
311 | | - del::Ptr{Cvoid} = C_NULL |
312 | | - |
313 | | - version_tag::Cuint = 0 |
314 | | - |
315 | | - finalize::Ptr{Cvoid} = C_NULL |
316 | | - vectorcall::Ptr{Cvoid} = C_NULL |
317 | | - |
318 | | - # Python 3.12+ fields |
319 | | - tp_watched::Cchar = 0 |
320 | | - |
321 | | - # Python 3.13+ fields |
322 | | - tp_versions_used::Cushort = 0 |
323 | | -end |
324 | | - |
325 | | -const PyTypePtr = Ptr{PyTypeObject} |
326 | | - |
327 | 252 | @kwdef struct PyType_Slot |
328 | 253 | slot::Cint = 0 |
329 | 254 | pfunc::Ptr{Cvoid} = C_NULL |
|
0 commit comments