/usr/lib/pypy/include/complexobject.h is in pypy-dev 5.0.1+dfsg-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | /* Complex object interface */
#ifndef Py_COMPLEXOBJECT_H
#define Py_COMPLEXOBJECT_H
#ifdef __cplusplus
extern "C" {
#endif
/* fake PyComplexObject so that code that doesn't do direct field access works */
#define PyComplexObject PyObject
typedef struct Py_complex_t {
double real;
double imag;
} Py_complex;
/* generated function */
PyAPI_FUNC(int) _PyComplex_AsCComplex(PyObject *, Py_complex *);
PyAPI_FUNC(PyObject *) _PyComplex_FromCComplex(Py_complex *);
Py_LOCAL_INLINE(Py_complex) PyComplex_AsCComplex(PyObject *obj)
{
Py_complex result;
_PyComplex_AsCComplex(obj, &result);
return result;
}
// shmuller 2013/07/30: Make a function, since macro will fail in C++ due to
// const correctness if called with "const Py_complex"
//#define PyComplex_FromCComplex(c) _PyComplex_FromCComplex(&c)
Py_LOCAL_INLINE(PyObject *) PyComplex_FromCComplex(Py_complex c) {
return _PyComplex_FromCComplex(&c);
}
#ifdef __cplusplus
}
#endif
#endif /* !Py_COMPLEXOBJECT_H */
|