1. Pypy
  2. Untitled project
  3. pypy


Armin Rigo  committed 87a46a9

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"...

  • Participants
  • Parent commits b224e60
  • Branches default

Comments (0)

Files changed (3)

File pypy/module/cpyext/include/bufferobject.h

View file
 PyObject* PyBuffer_New(Py_ssize_t size);
-void _Py_init_bufferobject(void);
+PyTypeObject *_Py_get_buffer_type(void);
 #ifdef __cplusplus

File pypy/module/cpyext/include/pycapsule.h

View file
 PyAPI_FUNC(void *) PyCapsule_Import(const char *name, int no_block);
-void _Py_init_capsule(void);
+PyTypeObject *_Py_get_capsule_type(void);
 #ifdef __cplusplus

File pypy/module/cpyext/include/pycobject.h

View file
 } PyCObject;
-void _Py_init_pycobject(void);
+PyTypeObject *_Py_get_cobject_type(void);
 #ifdef __cplusplus