Author: Armin Rigo <[email protected]>
Branch:
Changeset: r59561:b26d37a946f5
Date: 2012-12-26 11:44 +0100
http://bitbucket.org/pypy/pypy/changeset/b26d37a946f5/
Log: Always define these functions. They are used even in non-standalone
tests, e.g. test/test_rffi.py, which would crash on 64-bit because
they are used the implicitly-defined version --- returning ints.
diff --git a/pypy/translator/c/src/allocator.h
b/pypy/translator/c/src/allocator.h
--- a/pypy/translator/c/src/allocator.h
+++ b/pypy/translator/c/src/allocator.h
@@ -1,7 +1,4 @@
-#ifdef PYPY_STANDALONE
/* allocation functions prototypes */
void *PyObject_Malloc(size_t n);
void *PyObject_Realloc(void *p, size_t n);
void PyObject_Free(void *p);
-
-#endif /* PYPY_STANDALONE */
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit