summaryrefslogtreecommitdiffstats
path: root/Include/internal
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-05-02 15:54:20 (GMT)
committerGitHub <noreply@github.com>2019-05-02 15:54:20 (GMT)
commit43fc3bb7cf0278735eb0010d7b3043775a120cb5 (patch)
tree0807627b8981941f1c0135c5af9c865f8bd3e0ca /Include/internal
parente251095a3f4778102f554cecffcfd837f4d1db6c (diff)
downloadcpython-43fc3bb7cf0278735eb0010d7b3043775a120cb5.zip
cpython-43fc3bb7cf0278735eb0010d7b3043775a120cb5.tar.gz
cpython-43fc3bb7cf0278735eb0010d7b3043775a120cb5.tar.bz2
bpo-36775: Add _PyUnicode_InitEncodings() (GH-13057)
Move get_codec_name() and initfsencoding() from pylifecycle.c to unicodeobject.c. Rename also "init" functions in pylifecycle.c.
Diffstat (limited to 'Include/internal')
-rw-r--r--Include/internal/pycore_pylifecycle.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Include/internal/pycore_pylifecycle.h b/Include/internal/pycore_pylifecycle.h
index f5da143..a2383d4 100644
--- a/Include/internal/pycore_pylifecycle.h
+++ b/Include/internal/pycore_pylifecycle.h
@@ -16,10 +16,11 @@ PyAPI_DATA(int) _Py_UnhandledKeyboardInterrupt;
PyAPI_FUNC(int) _Py_UnixMain(int argc, char **argv);
-PyAPI_FUNC(int) _Py_SetFileSystemEncoding(
+extern int _Py_SetFileSystemEncoding(
const char *encoding,
const char *errors);
-PyAPI_FUNC(void) _Py_ClearFileSystemEncoding(void);
+extern void _Py_ClearFileSystemEncoding(void);
+extern _PyInitError _PyUnicode_InitEncodings(PyInterpreterState *interp);
PyAPI_FUNC(void) _Py_ClearStandardStreamEncoding(void);