Debian Codegraph @

pypy/module/cpyext/include/complexobject.h

raw symbols SCIP
1 /* Complex object interface */
2
3 #ifndef Py_COMPLEXOBJECT_H
4 #define Py_COMPLEXOBJECT_H
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8
9 typedef struct Py_complex_t {
10 double real;
11 double imag;
12 } Py_complex;
13
14 typedef struct {
15 PyObject_HEAD
16 Py_complex cval;
17 } PyComplexObject;
18
19 PyAPI_FUNC(Py_complex) PyComplex_AsCComplex(PyObject *obj);
20 PyAPI_FUNC(PyObject *) PyComplex_FromCComplex(Py_complex c);
21
22 #ifdef __cplusplus
23 }
24 #endif
25 #endif /* !Py_COMPLEXOBJECT_H */