annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/include/python3.8/pystrtod.h @ 69:33d812a61356

planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author jpayne
date Tue, 18 Mar 2025 17:55:14 -0400
parents
children
rev   line source
jpayne@69 1 #ifndef Py_STRTOD_H
jpayne@69 2 #define Py_STRTOD_H
jpayne@69 3
jpayne@69 4 #ifdef __cplusplus
jpayne@69 5 extern "C" {
jpayne@69 6 #endif
jpayne@69 7
jpayne@69 8
jpayne@69 9 PyAPI_FUNC(double) PyOS_string_to_double(const char *str,
jpayne@69 10 char **endptr,
jpayne@69 11 PyObject *overflow_exception);
jpayne@69 12
jpayne@69 13 /* The caller is responsible for calling PyMem_Free to free the buffer
jpayne@69 14 that's is returned. */
jpayne@69 15 PyAPI_FUNC(char *) PyOS_double_to_string(double val,
jpayne@69 16 char format_code,
jpayne@69 17 int precision,
jpayne@69 18 int flags,
jpayne@69 19 int *type);
jpayne@69 20
jpayne@69 21 #ifndef Py_LIMITED_API
jpayne@69 22 PyAPI_FUNC(PyObject *) _Py_string_to_number_with_underscores(
jpayne@69 23 const char *str, Py_ssize_t len, const char *what, PyObject *obj, void *arg,
jpayne@69 24 PyObject *(*innerfunc)(const char *, Py_ssize_t, void *));
jpayne@69 25
jpayne@69 26 PyAPI_FUNC(double) _Py_parse_inf_or_nan(const char *p, char **endptr);
jpayne@69 27 #endif
jpayne@69 28
jpayne@69 29
jpayne@69 30 /* PyOS_double_to_string's "flags" parameter can be set to 0 or more of: */
jpayne@69 31 #define Py_DTSF_SIGN 0x01 /* always add the sign */
jpayne@69 32 #define Py_DTSF_ADD_DOT_0 0x02 /* if the result is an integer add ".0" */
jpayne@69 33 #define Py_DTSF_ALT 0x04 /* "alternate" formatting. it's format_code
jpayne@69 34 specific */
jpayne@69 35
jpayne@69 36 /* PyOS_double_to_string's "type", if non-NULL, will be set to one of: */
jpayne@69 37 #define Py_DTST_FINITE 0
jpayne@69 38 #define Py_DTST_INFINITE 1
jpayne@69 39 #define Py_DTST_NAN 2
jpayne@69 40
jpayne@69 41 #ifdef __cplusplus
jpayne@69 42 }
jpayne@69 43 #endif
jpayne@69 44
jpayne@69 45 #endif /* !Py_STRTOD_H */