Staging
v0.5.1
https://github.com/python/cpython
Revision 53345a40bcbf6d71705533b658b2940dad31a684 authored by Victor Stinner on 25 March 2015, 00:55:14 UTC, committed by Victor Stinner on 25 March 2015, 00:55:14 UTC
Flushing sys.stdout and sys.stderr in Py_FatalError() can call again
Py_FatalError(). Add a reentrant flag to detect this case and just abort at the
second call.
2 parent s 09ce278 + 84092ac
Raw File
Tip revision: 53345a40bcbf6d71705533b658b2940dad31a684 authored by Victor Stinner on 25 March 2015, 00:55:14 UTC
(Merge 3.4) Issue #23571: Fix reentrant call to Py_FatalError()
Tip revision: 53345a4
dtoa.h
#ifndef Py_LIMITED_API
#ifndef PY_NO_SHORT_FLOAT_REPR
#ifdef __cplusplus
extern "C" {
#endif

PyAPI_FUNC(double) _Py_dg_strtod(const char *str, char **ptr);
PyAPI_FUNC(char *) _Py_dg_dtoa(double d, int mode, int ndigits,
                        int *decpt, int *sign, char **rve);
PyAPI_FUNC(void) _Py_dg_freedtoa(char *s);
PyAPI_FUNC(double) _Py_dg_stdnan(int sign);
PyAPI_FUNC(double) _Py_dg_infinity(int sign);


#ifdef __cplusplus
}
#endif
#endif
#endif
back to top