A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-November/030338.html below:

PyMem_MALLOC (was [Python-Dev] Snake farm)

PyMem_MALLOC (was [Python-Dev] Snake farm) PyMem_MALLOC (was [Python-Dev] Snake farm)Marc Recht marc@informatik.uni-bremen.de
Fri, 22 Nov 2002 17:35:55 +0100
> This can be solved (as MAL suggested) by fixing configure so that
> malloc(0) returning 0x800 is treated the same as malloc(0) returning
> NULL.  That way, pymalloc's free code doesn't have to special-case
> this.
What about changing
PyMem_MALLOC malloc
to
#define PyMem_MALLOC(n)     n ? malloc(n) : NULL

Regards,
Marc





RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4