Author: Armin Rigo <[email protected]>
Branch:
Changeset: r69112:87a46a9756fb
Date: 2014-02-10 09:15 +0100
http://bitbucket.org/pypy/pypy/changeset/87a46a9756fb/
Log: Argh. I forgot that the _Py_get_xxx_type() functions also need a
declaration in the headers. Without it, it would compile and run
fine (with warnings), *except* on OS/X, where pointers to built-ins
are not within the first 2GB, so the value doesn't fit an "int"...
diff --git a/pypy/module/cpyext/include/bufferobject.h
b/pypy/module/cpyext/include/bufferobject.h
--- a/pypy/module/cpyext/include/bufferobject.h
+++ b/pypy/module/cpyext/include/bufferobject.h
@@ -37,7 +37,7 @@
PyObject* PyBuffer_New(Py_ssize_t size);
-void _Py_init_bufferobject(void);
+PyTypeObject *_Py_get_buffer_type(void);
#ifdef __cplusplus
}
diff --git a/pypy/module/cpyext/include/pycapsule.h
b/pypy/module/cpyext/include/pycapsule.h
--- a/pypy/module/cpyext/include/pycapsule.h
+++ b/pypy/module/cpyext/include/pycapsule.h
@@ -50,7 +50,7 @@
PyAPI_FUNC(void *) PyCapsule_Import(const char *name, int no_block);
-void _Py_init_capsule(void);
+PyTypeObject *_Py_get_capsule_type(void);
#ifdef __cplusplus
}
diff --git a/pypy/module/cpyext/include/pycobject.h
b/pypy/module/cpyext/include/pycobject.h
--- a/pypy/module/cpyext/include/pycobject.h
+++ b/pypy/module/cpyext/include/pycobject.h
@@ -48,7 +48,7 @@
} PyCObject;
#endif
-void _Py_init_pycobject(void);
+PyTypeObject *_Py_get_cobject_type(void);
#ifdef __cplusplus
}
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit