aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-09-11 11:03:14 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2016-09-11 11:03:14 +0300
commit9fab79bcb5b83dc0247ce4cd60486341c73e7fd5 (patch)
treeb24f07e6f0ccb42ae02628248d1b521d6700386f /Include/fileutils.h
parentissue23591: add auto() for auto-generating Enum member values (diff)
downloadcpython-9fab79bcb5b83dc0247ce4cd60486341c73e7fd5.tar.gz
cpython-9fab79bcb5b83dc0247ce4cd60486341c73e7fd5.tar.bz2
cpython-9fab79bcb5b83dc0247ce4cd60486341c73e7fd5.zip
Issue #26900: Excluded underscored names and other private API from limited API.
Diffstat (limited to 'Include/fileutils.h')
-rw-r--r--Include/fileutils.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/Include/fileutils.h b/Include/fileutils.h
index 63ff80e62f..4016431daa 100644
--- a/Include/fileutils.h
+++ b/Include/fileutils.h
@@ -5,8 +5,6 @@
extern "C" {
#endif
-PyAPI_FUNC(PyObject *) _Py_device_encoding(int);
-
PyAPI_FUNC(wchar_t *) Py_DecodeLocale(
const char *arg,
size_t *size);
@@ -17,6 +15,8 @@ PyAPI_FUNC(char*) Py_EncodeLocale(
#ifndef Py_LIMITED_API
+PyAPI_FUNC(PyObject *) _Py_device_encoding(int);
+
#ifdef MS_WINDOWS
struct _Py_stat_struct {
unsigned long st_dev;
@@ -46,13 +46,11 @@ PyAPI_FUNC(int) _Py_fstat(
PyAPI_FUNC(int) _Py_fstat_noraise(
int fd,
struct _Py_stat_struct *status);
-#endif /* Py_LIMITED_API */
PyAPI_FUNC(int) _Py_stat(
PyObject *path,
struct stat *status);
-#ifndef Py_LIMITED_API
PyAPI_FUNC(int) _Py_open(
const char *pathname,
int flags);
@@ -60,7 +58,6 @@ PyAPI_FUNC(int) _Py_open(
PyAPI_FUNC(int) _Py_open_noraise(
const char *pathname,
int flags);
-#endif
PyAPI_FUNC(FILE *) _Py_wfopen(
const wchar_t *path,
@@ -107,7 +104,6 @@ PyAPI_FUNC(wchar_t*) _Py_wgetcwd(
wchar_t *buf,
size_t size);
-#ifndef Py_LIMITED_API
PyAPI_FUNC(int) _Py_get_inheritable(int fd);
PyAPI_FUNC(int) _Py_set_inheritable(int fd, int inheritable,