summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorEthan Furman <ethan@stoneleaf.us>2016-06-04 19:06:26 (GMT)
committerEthan Furman <ethan@stoneleaf.us>2016-06-04 19:06:26 (GMT)
commit410ef8e23088ab2b8bd92ac70a8176f71da2b931 (patch)
treedceeb23e4a2dcddecc72e0bc6faa15a1177ab633 /Include
parentc55014f3717ce8a810a7e934c8ad5b519dbf88c5 (diff)
downloadcpython-410ef8e23088ab2b8bd92ac70a8176f71da2b931.zip
cpython-410ef8e23088ab2b8bd92ac70a8176f71da2b931.tar.gz
cpython-410ef8e23088ab2b8bd92ac70a8176f71da2b931.tar.bz2
issue27186: add C version of os.fspath(); patch by Jelle Zijlstra
Diffstat (limited to 'Include')
-rw-r--r--Include/Python.h1
-rw-r--r--Include/osmodule.h15
2 files changed, 16 insertions, 0 deletions
diff --git a/Include/Python.h b/Include/Python.h
index 858dbd1..4c7c9a4 100644
--- a/Include/Python.h
+++ b/Include/Python.h
@@ -116,6 +116,7 @@
#include "pylifecycle.h"
#include "ceval.h"
#include "sysmodule.h"
+#include "osmodule.h"
#include "intrcheck.h"
#include "import.h"
diff --git a/Include/osmodule.h b/Include/osmodule.h
new file mode 100644
index 0000000..7146757
--- /dev/null
+++ b/Include/osmodule.h
@@ -0,0 +1,15 @@
+
+/* os module interface */
+
+#ifndef Py_OSMODULE_H
+#define Py_OSMODULE_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+PyAPI_FUNC(PyObject *) PyOS_FSPath(PyObject *path);
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* !Py_OSMODULE_H */