Skip to content

Commit

Permalink
pythongh-111178: Avoid calling functions from incompatible pointer ty…
Browse files Browse the repository at this point in the history
…pes in memoryobject.c (pythonGH-112863)

* Make memory_clear() compatible with inquiry
* Make memory_traverse() compatible with traverseproc
* Make memory_dealloc() compatible with destructor
* Make memory_repr() compatible with reprfunc
* Make memory_hash() compatible with hashfunc
* Make memoryiter_next() compatible with iternextfunc
* Make memoryiter_traverse() compatible with traverseproc
* Make memoryiter_dealloc() compatible with destructor
* Make several functions compatible with getter
* Make a few functions compatible with getter
* Make memory_item() compatible with ssizeargfunc
* Make memory_subscript() compatible with binaryfunc
* Make memory_length() compatible with lenfunc
* Make memory_ass_sub() compatible with objobjargproc
* Make memory_releasebuf() compatible with releasebufferproc
* Make memory_getbuf() compatible with getbufferproc
* Make mbuf_clear() compatible with inquiry
* Make mbuf_traverse() compatible with traverseproc
* Make mbuf_dealloc() compatible with destructor
  • Loading branch information
chrstphrchvz authored Dec 11, 2023
1 parent 27a5fd8 commit f4fe65e
Showing 1 changed file with 90 additions and 61 deletions.
Loading

0 comments on commit f4fe65e

Please sign in to comment.