issue27186: add C version of os.fspath(); patch by Jelle Zijlstra

This commit is contained in:
Ethan Furman 2016-06-04 12:06:26 -07:00
parent c55014f371
commit 410ef8e230
6 changed files with 125 additions and 18 deletions

View file

@ -116,6 +116,7 @@
#include "pylifecycle.h"
#include "ceval.h"
#include "sysmodule.h"
#include "osmodule.h"
#include "intrcheck.h"
#include "import.h"

15
Include/osmodule.h Normal file
View file

@ -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 */