[pypy-svn] pypy default: in dtoa.c, use malloc() directly. The code has its own freelists anyway.

amauryfa commits-noreply at bitbucket.org
Mon Feb 14 15:40:18 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: 
Changeset: r41908:5da6e2d7ccde
Date: 2011-02-14 15:38 +0100
http://bitbucket.org/pypy/pypy/changeset/5da6e2d7ccde/

Log:	in dtoa.c, use malloc() directly. The code has its own freelists
	anyway.

diff --git a/pypy/translator/c/src/dtoa.c b/pypy/translator/c/src/dtoa.c
--- a/pypy/translator/c/src/dtoa.c
+++ b/pypy/translator/c/src/dtoa.c
@@ -129,10 +129,9 @@
 #include <stdio.h>
 #include <string.h>
 #define PYPY_NOT_MAIN_FILE
-#include "src/allocator.h"
 #include "src/asm.h"
-#define PyMem_Malloc PyObject_Malloc
-#define PyMem_Free PyObject_Free
+#define PyMem_Malloc malloc
+#define PyMem_Free free
 /* End PYPY hacks */
 
 


More information about the Pypy-commit mailing list