mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
issue27186: add C version of os.fspath(); patch by Jelle Zijlstra
This commit is contained in:
parent
c55014f371
commit
410ef8e230
6 changed files with 125 additions and 18 deletions
|
@ -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
15
Include/osmodule.h
Normal 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 */
|
Loading…
Add table
Add a link
Reference in a new issue