gh-112019: reversion of removal _Py_c_* functions in #106339 by skirpichev · Pull Request #112021 · python/cpython

Expand Up @@ -10,16 +10,6 @@ extern "C" {
#include "pycore_unicodeobject.h" // _PyUnicodeWriter
// Operations on complex numbers. // Export functions for 'cmath' shared extension. 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);
/* Format the object based on the format_spec, as defined in PEP 3101 (Advanced String Formatting). */ extern int _PyComplex_FormatAdvancedWriter( Expand Down