Current Dir: /usr/include/python3.9/
[DIR] cpython [ delete | rename ]
[DIR] internal [ delete | rename ]
[FILE] abstract.h [ edit | delete | rename ]
[FILE] asdl.h [ edit | delete | rename ]
[FILE] ast.h [ edit | delete | rename ]
[FILE] bitset.h [ edit | delete | rename ]
[FILE] bltinmodule.h [ edit | delete | rename ]
[FILE] boolobject.h [ edit | delete | rename ]
[FILE] bytearrayobject.h [ edit | delete | rename ]
[FILE] bytesobject.h [ edit | delete | rename ]
[FILE] cellobject.h [ edit | delete | rename ]
[FILE] ceval.h [ edit | delete | rename ]
[FILE] classobject.h [ edit | delete | rename ]
[FILE] code.h [ edit | delete | rename ]
[FILE] codecs.h [ edit | delete | rename ]
[FILE] compile.h [ edit | delete | rename ]
[FILE] complexobject.h [ edit | delete | rename ]
[FILE] context.h [ edit | delete | rename ]
[FILE] datetime.h [ edit | delete | rename ]
[FILE] descrobject.h [ edit | delete | rename ]
[FILE] dictobject.h [ edit | delete | rename ]
[FILE] dynamic_annotations.h [ edit | delete | rename ]
[FILE] enumobject.h [ edit | delete | rename ]
[FILE] errcode.h [ edit | delete | rename ]
[FILE] eval.h [ edit | delete | rename ]
[FILE] exports.h [ edit | delete | rename ]
[FILE] fileobject.h [ edit | delete | rename ]
[FILE] fileutils.h [ edit | delete | rename ]
[FILE] floatobject.h [ edit | delete | rename ]
[FILE] frameobject.h [ edit | delete | rename ]
[FILE] funcobject.h [ edit | delete | rename ]
[FILE] genericaliasobject.h [ edit | delete | rename ]
[FILE] genobject.h [ edit | delete | rename ]
[FILE] graminit.h [ edit | delete | rename ]
[FILE] grammar.h [ edit | delete | rename ]
[FILE] import.h [ edit | delete | rename ]
[FILE] interpreteridobject.h [ edit | delete | rename ]
[FILE] intrcheck.h [ edit | delete | rename ]
[FILE] iterobject.h [ edit | delete | rename ]
[FILE] listobject.h [ edit | delete | rename ]
[FILE] longintrepr.h [ edit | delete | rename ]
[FILE] longobject.h [ edit | delete | rename ]
[FILE] marshal.h [ edit | delete | rename ]
[FILE] memoryobject.h [ edit | delete | rename ]
[FILE] methodobject.h [ edit | delete | rename ]
[FILE] modsupport.h [ edit | delete | rename ]
[FILE] moduleobject.h [ edit | delete | rename ]
[FILE] namespaceobject.h [ edit | delete | rename ]
[FILE] node.h [ edit | delete | rename ]
[FILE] object.h [ edit | delete | rename ]
[FILE] objimpl.h [ edit | delete | rename ]
[FILE] odictobject.h [ edit | delete | rename ]
[FILE] opcode.h [ edit | delete | rename ]
[FILE] osdefs.h [ edit | delete | rename ]
[FILE] osmodule.h [ edit | delete | rename ]
[FILE] parsetok.h [ edit | delete | rename ]
[FILE] patchlevel.h [ edit | delete | rename ]
[FILE] picklebufobject.h [ edit | delete | rename ]
[FILE] pyarena.h [ edit | delete | rename ]
[FILE] pycapsule.h [ edit | delete | rename ]
[FILE] pyconfig-64.h [ edit | delete | rename ]
[FILE] pyconfig.h [ edit | delete | rename ]
[FILE] pyctype.h [ edit | delete | rename ]
[FILE] pydebug.h [ edit | delete | rename ]
[FILE] pydtrace.h [ edit | delete | rename ]
[FILE] pyerrors.h [ edit | delete | rename ]
[FILE] pyexpat.h [ edit | delete | rename ]
[FILE] pyfpe.h [ edit | delete | rename ]
[FILE] pyframe.h [ edit | delete | rename ]
[FILE] pyhash.h [ edit | delete | rename ]
[FILE] pylifecycle.h [ edit | delete | rename ]
[FILE] pymacconfig.h [ edit | delete | rename ]
[FILE] pymacro.h [ edit | delete | rename ]
[FILE] pymath.h [ edit | delete | rename ]
[FILE] pymem.h [ edit | delete | rename ]
[FILE] pyport.h [ edit | delete | rename ]
[FILE] pystate.h [ edit | delete | rename ]
[FILE] pystrcmp.h [ edit | delete | rename ]
[FILE] pystrhex.h [ edit | delete | rename ]
[FILE] pystrtod.h [ edit | delete | rename ]
[FILE] Python-ast.h [ edit | delete | rename ]
[FILE] Python.h [ edit | delete | rename ]
[FILE] pythonrun.h [ edit | delete | rename ]
[FILE] pythread.h [ edit | delete | rename ]
[FILE] pytime.h [ edit | delete | rename ]
[FILE] py_curses.h [ edit | delete | rename ]
[FILE] rangeobject.h [ edit | delete | rename ]
[FILE] setobject.h [ edit | delete | rename ]
[FILE] sliceobject.h [ edit | delete | rename ]
[FILE] structmember.h [ edit | delete | rename ]
[FILE] structseq.h [ edit | delete | rename ]
[FILE] symtable.h [ edit | delete | rename ]
[FILE] sysmodule.h [ edit | delete | rename ]
[FILE] token.h [ edit | delete | rename ]
[FILE] traceback.h [ edit | delete | rename ]
[FILE] tracemalloc.h [ edit | delete | rename ]
[FILE] tupleobject.h [ edit | delete | rename ]
[FILE] typeslots.h [ edit | delete | rename ]
[FILE] ucnhash.h [ edit | delete | rename ]
[FILE] unicodeobject.h [ edit | delete | rename ]
[FILE] warnings.h [ edit | delete | rename ]
[FILE] weakrefobject.h [ edit | delete | rename ]
Viewing: /usr/include/python3.9/complexobject.h
/* Complex number structure */
#ifndef Py_COMPLEXOBJECT_H
#define Py_COMPLEXOBJECT_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef Py_LIMITED_API
typedef struct {
double real;
double imag;
} Py_complex;
/* Operations on complex numbers from complexmodule.c */
PyAPI_FUNC(Py_complex) _Py_c_sum(Py_complex, Py_complex);
PyAPI_FUNC(Py_complex) _Py_c_diff(Py_complex, Py_complex);
PyAPI_FUNC(Py_complex) _Py_c_neg(Py_complex);
PyAPI_FUNC(Py_complex) _Py_c_prod(Py_complex, Py_complex);
PyAPI_FUNC(Py_complex) _Py_c_quot(Py_complex, Py_complex);
PyAPI_FUNC(Py_complex) _Py_c_pow(Py_complex, Py_complex);
PyAPI_FUNC(double) _Py_c_abs(Py_complex);
#endif
/* Complex object interface */
/*
PyComplexObject represents a complex number with double-precision
real and imaginary parts.
*/
#ifndef Py_LIMITED_API
typedef struct {
PyObject_HEAD
Py_complex cval;
} PyComplexObject;
#endif
PyAPI_DATA(PyTypeObject) PyComplex_Type;
#define PyComplex_Check(op) PyObject_TypeCheck(op, &PyComplex_Type)
#define PyComplex_CheckExact(op) Py_IS_TYPE(op, &PyComplex_Type)
#ifndef Py_LIMITED_API
PyAPI_FUNC(PyObject *) PyComplex_FromCComplex(Py_complex);
#endif
PyAPI_FUNC(PyObject *) PyComplex_FromDoubles(double real, double imag);
PyAPI_FUNC(double) PyComplex_RealAsDouble(PyObject *op);
PyAPI_FUNC(double) PyComplex_ImagAsDouble(PyObject *op);
#ifndef Py_LIMITED_API
PyAPI_FUNC(Py_complex) PyComplex_AsCComplex(PyObject *op);
#endif
/* Format the object based on the format_spec, as defined in PEP 3101
(Advanced String Formatting). */
#ifndef Py_LIMITED_API
PyAPI_FUNC(int) _PyComplex_FormatAdvancedWriter(
_PyUnicodeWriter *writer,
PyObject *obj,
PyObject *format_spec,
Py_ssize_t start,
Py_ssize_t end);
#endif
#ifdef __cplusplus
}
#endif
#endif /* !Py_COMPLEXOBJECT_H */