Author: Armin Rigo <[email protected]>
Branch:
Changeset: r76230:2ff6288a1cf6
Date: 2015-03-03 13:06 +0100
http://bitbucket.org/pypy/pypy/changeset/2ff6288a1cf6/
Log: Shortcut the two-step #define, which ends in a warning from the C
compiler if we also have cpyext/include/pymem.h
diff --git a/rpython/translator/c/src/dtoa.c b/rpython/translator/c/src/dtoa.c
--- a/rpython/translator/c/src/dtoa.c
+++ b/rpython/translator/c/src/dtoa.c
@@ -129,8 +129,6 @@
#include <stdio.h>
#include <string.h>
#include "src/asm.h"
-#define PyMem_Malloc malloc
-#define PyMem_Free free
/* End PYPY hacks */
@@ -140,8 +138,8 @@
#include <float.h>
-#define MALLOC PyMem_Malloc
-#define FREE PyMem_Free
+#define MALLOC malloc
+#define FREE free
/* This code should also work for ARM mixed-endian format on little-endian
machines, where doubles have byte order 45670123 (in increasing address
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit