summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2004-06-08 18:52:54 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2004-06-08 18:52:54 (GMT)
commit737ea82a5abd448b3e214b44d7d3c579b77e8155 (patch)
treeb0f710ba716db5247dbb6ac88e0a20ea8623f716 /Include
parent6ccc9a99dfbb2575daa8e01a8e8e3531b61a9d60 (diff)
downloadcpython-737ea82a5abd448b3e214b44d7d3c579b77e8155.zip
cpython-737ea82a5abd448b3e214b44d7d3c579b77e8155.tar.gz
cpython-737ea82a5abd448b3e214b44d7d3c579b77e8155.tar.bz2
Patch #774665: Make Python LC_NUMERIC agnostic.
Diffstat (limited to 'Include')
-rw-r--r--Include/Python.h2
-rw-r--r--Include/pystrtod.h18
2 files changed, 20 insertions, 0 deletions
diff --git a/Include/Python.h b/Include/Python.h
index f332836..0d9a797 100644
--- a/Include/Python.h
+++ b/Include/Python.h
@@ -119,6 +119,8 @@
#include "compile.h"
#include "eval.h"
+#include "pystrtod.h"
+
/* _Py_Mangle is defined in compile.c */
PyAPI_FUNC(int) _Py_Mangle(char *p, char *name, \
char *buffer, size_t maxlen);
diff --git a/Include/pystrtod.h b/Include/pystrtod.h
new file mode 100644
index 0000000..e4e5e52
--- /dev/null
+++ b/Include/pystrtod.h
@@ -0,0 +1,18 @@
+#ifndef Py_STRTOD_H
+#define Py_STRTOD_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+double PyOS_ascii_strtod(const char *str, char **ptr);
+double PyOS_ascii_atof(const char *str);
+char * PyOS_ascii_formatd(char *buffer, int buf_len, const char *format, double d);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* !Py_STRTOD_H */