]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42519: Replace PyMem_MALLOC() with PyMem_Malloc() (GH-23586)
authorVictor Stinner <vstinner@python.org>
Tue, 1 Dec 2020 08:56:42 +0000 (09:56 +0100)
committerGitHub <noreply@github.com>
Tue, 1 Dec 2020 08:56:42 +0000 (09:56 +0100)
commit00d7abd7ef588fc4ff0571c8579ab4aba8ada1c0
tree26ebb0fe409768193bb85be90c0229a0f44d6f8e
parentb2d0c66e881301ed8908da3cb41bbf253c449b0c
bpo-42519: Replace PyMem_MALLOC() with PyMem_Malloc() (GH-23586)

No longer use deprecated aliases to functions:

* Replace PyMem_MALLOC() with PyMem_Malloc()
* Replace PyMem_REALLOC() with PyMem_Realloc()
* Replace PyMem_FREE() with PyMem_Free()
* Replace PyMem_Del() with PyMem_Free()
* Replace PyMem_DEL() with PyMem_Free()

Modify also the PyMem_DEL() macro to use directly PyMem_Free().
33 files changed:
Include/objimpl.h
Include/pymem.h
Modules/_localemodule.c
Modules/_pickle.c
Modules/_sre.c
Modules/_ssl.c
Modules/_struct.c
Modules/_testcapimodule.c
Modules/_threadmodule.c
Modules/_tkinter.c
Modules/arraymodule.c
Modules/cjkcodecs/multibytecodec.c
Modules/posixmodule.c
Modules/selectmodule.c
Objects/capsule.c
Objects/codeobject.c
Objects/dictobject.c
Objects/listobject.c
Objects/moduleobject.c
Objects/odictobject.c
Objects/setobject.c
Objects/stringlib/join.h
Objects/structseq.c
Objects/typeobject.c
Objects/unicodeobject.c
PC/winreg.c
Parser/string_parser.c
Parser/tokenizer.c
Python/bltinmodule.c
Python/getargs.c
Python/marshal.c
Python/pystrtod.c
Python/traceback.c