annotate DEPENDENCIES/mingw32/Python27/include/pystrtod.h @ 118:770eb830ec19 emscripten

Typo fix
author Chris Cannam
date Wed, 18 May 2016 16:14:08 +0100
parents 2a2c65a20a8b
children
rev   line source
Chris@87 1 #ifndef Py_STRTOD_H
Chris@87 2 #define Py_STRTOD_H
Chris@87 3
Chris@87 4 #ifdef __cplusplus
Chris@87 5 extern "C" {
Chris@87 6 #endif
Chris@87 7
Chris@87 8
Chris@87 9 PyAPI_FUNC(double) PyOS_ascii_strtod(const char *str, char **ptr);
Chris@87 10 PyAPI_FUNC(double) PyOS_ascii_atof(const char *str);
Chris@87 11
Chris@87 12 /* Deprecated in 2.7 and 3.1. Will disappear in 2.8 (if it exists) and 3.2 */
Chris@87 13 PyAPI_FUNC(char *) PyOS_ascii_formatd(char *buffer, size_t buf_len,
Chris@87 14 const char *format, double d);
Chris@87 15 PyAPI_FUNC(double) PyOS_string_to_double(const char *str,
Chris@87 16 char **endptr,
Chris@87 17 PyObject *overflow_exception);
Chris@87 18
Chris@87 19 /* The caller is responsible for calling PyMem_Free to free the buffer
Chris@87 20 that's is returned. */
Chris@87 21 PyAPI_FUNC(char *) PyOS_double_to_string(double val,
Chris@87 22 char format_code,
Chris@87 23 int precision,
Chris@87 24 int flags,
Chris@87 25 int *type);
Chris@87 26
Chris@87 27 PyAPI_FUNC(double) _Py_parse_inf_or_nan(const char *p, char **endptr);
Chris@87 28
Chris@87 29
Chris@87 30 /* PyOS_double_to_string's "flags" parameter can be set to 0 or more of: */
Chris@87 31 #define Py_DTSF_SIGN 0x01 /* always add the sign */
Chris@87 32 #define Py_DTSF_ADD_DOT_0 0x02 /* if the result is an integer add ".0" */
Chris@87 33 #define Py_DTSF_ALT 0x04 /* "alternate" formatting. it's format_code
Chris@87 34 specific */
Chris@87 35
Chris@87 36 /* PyOS_double_to_string's "type", if non-NULL, will be set to one of: */
Chris@87 37 #define Py_DTST_FINITE 0
Chris@87 38 #define Py_DTST_INFINITE 1
Chris@87 39 #define Py_DTST_NAN 2
Chris@87 40
Chris@87 41 #ifdef __cplusplus
Chris@87 42 }
Chris@87 43 #endif
Chris@87 44
Chris@87 45 #endif /* !Py_STRTOD_H */