| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent bccacd1 commit 9fc57a3
7 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,28 +1,9 @@ | |||
| 1 | 1 | #ifndef Py_FILEUTILS_H | |
| 2 | 2 | #define Py_FILEUTILS_H | |
| 3 | - | ||
| 4 | 3 | #ifdef __cplusplus | |
| 5 | 4 | extern "C" { | |
| 6 | 5 | #endif | |
| 7 | 6 | ||
| 8 | - | ||
| 9 | - #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03080000 | ||
| 10 | - typedef enum { | ||
| 11 | - _Py_ERROR_UNKNOWN=0, | ||
| 12 | - _Py_ERROR_STRICT, | ||
| 13 | - _Py_ERROR_SURROGATEESCAPE, | ||
| 14 | - _Py_ERROR_REPLACE, | ||
| 15 | - _Py_ERROR_IGNORE, | ||
| 16 | - _Py_ERROR_BACKSLASHREPLACE, | ||
| 17 | - _Py_ERROR_SURROGATEPASS, | ||
| 18 | - _Py_ERROR_XMLCHARREFREPLACE, | ||
| 19 | - _Py_ERROR_OTHER | ||
| 20 | - } _Py_error_handler; | ||
| 21 | - | ||
| 22 | - PyAPI_FUNC(_Py_error_handler) _Py_GetErrorHandler(const char *errors); | ||
| 23 | - #endif | ||
| 24 | - | ||
| 25 | - | ||
| 26 | 7 | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000 | |
| 27 | 8 | PyAPI_FUNC(wchar_t *) Py_DecodeLocale( | |
| 28 | 9 | const char *arg, | |
@@ -37,30 +18,22 @@ PyAPI_FUNC(char*) _Py_EncodeLocaleRaw( | |||
| 37 | 18 | size_t *error_pos); | |
| 38 | 19 | #endif | |
| 39 | 20 | ||
| 40 | - #ifdef Py_BUILD_CORE | ||
| 41 | - PyAPI_FUNC(int) _Py_DecodeUTF8Ex( | ||
| 42 | - const char *arg, | ||
| 43 | - Py_ssize_t arglen, | ||
| 44 | - wchar_t **wstr, | ||
| 45 | - size_t *wlen, | ||
| 46 | - const char **reason, | ||
| 47 | - _Py_error_handler errors); | ||
| 48 | - | ||
| 49 | - PyAPI_FUNC(int) _Py_EncodeUTF8Ex( | ||
| 50 | - const wchar_t *text, | ||
| 51 | - char **str, | ||
| 52 | - size_t *error_pos, | ||
| 53 | - const char **reason, | ||
| 54 | - int raw_malloc, | ||
| 55 | - _Py_error_handler errors); | ||
| 56 | 21 | ||
| 57 | - PyAPI_FUNC(wchar_t*) _Py_DecodeUTF8_surrogateescape( | ||
| 58 | - const char *arg, | ||
| 59 | - Py_ssize_t arglen); | ||
| 60 | - #endif | ||
| 22 | + #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03080000 | ||
| 23 | + typedef enum { | ||
| 24 | + _Py_ERROR_UNKNOWN=0, | ||
| 25 | + _Py_ERROR_STRICT, | ||
| 26 | + _Py_ERROR_SURROGATEESCAPE, | ||
| 27 | + _Py_ERROR_REPLACE, | ||
| 28 | + _Py_ERROR_IGNORE, | ||
| 29 | + _Py_ERROR_BACKSLASHREPLACE, | ||
| 30 | + _Py_ERROR_SURROGATEPASS, | ||
| 31 | + _Py_ERROR_XMLCHARREFREPLACE, | ||
| 32 | + _Py_ERROR_OTHER | ||
| 33 | + } _Py_error_handler; | ||
| 61 | 34 | ||
| 35 | + PyAPI_FUNC(_Py_error_handler) _Py_GetErrorHandler(const char *errors); | ||
| 62 | 36 | ||
| 63 | - #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03080000 | ||
| 64 | 37 | PyAPI_FUNC(int) _Py_DecodeLocaleEx( | |
| 65 | 38 | const char *arg, | |
| 66 | 39 | wchar_t **wstr, | |
@@ -204,13 +177,7 @@ PyAPI_FUNC(int) _Py_GetLocaleconvNumeric( | |||
| 204 | 177 | ||
| 205 | 178 | #endif /* Py_LIMITED_API */ | |
| 206 | 179 | ||
| 207 | - | ||
| 208 | - #ifdef Py_BUILD_CORE | ||
| 209 | - PyAPI_FUNC(int) _Py_GetForceASCII(void); | ||
| 210 | - #endif | ||
| 211 | - | ||
| 212 | 180 | #ifdef __cplusplus | |
| 213 | 181 | } | |
| 214 | 182 | #endif | |
| 215 | - | ||
| 216 | 183 | #endif /* !Py_FILEUTILS_H */ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,36 @@ | |||
| 1 | + #ifndef Py_INTERNAL_FILEUTILS_H | ||
| 2 | + #define Py_INTERNAL_FILEUTILS_H | ||
| 3 | + #ifdef __cplusplus | ||
| 4 | + extern "C" { | ||
| 5 | + #endif | ||
| 6 | + | ||
| 7 | + #ifndef Py_BUILD_CORE | ||
| 8 | + # error "Py_BUILD_CORE must be defined to include this header" | ||
| 9 | + #endif | ||
| 10 | + | ||
| 11 | + PyAPI_FUNC(int) _Py_DecodeUTF8Ex( | ||
| 12 | + const char *arg, | ||
| 13 | + Py_ssize_t arglen, | ||
| 14 | + wchar_t **wstr, | ||
| 15 | + size_t *wlen, | ||
| 16 | + const char **reason, | ||
| 17 | + _Py_error_handler errors); | ||
| 18 | + | ||
| 19 | + PyAPI_FUNC(int) _Py_EncodeUTF8Ex( | ||
| 20 | + const wchar_t *text, | ||
| 21 | + char **str, | ||
| 22 | + size_t *error_pos, | ||
| 23 | + const char **reason, | ||
| 24 | + int raw_malloc, | ||
| 25 | + _Py_error_handler errors); | ||
| 26 | + | ||
| 27 | + PyAPI_FUNC(wchar_t*) _Py_DecodeUTF8_surrogateescape( | ||
| 28 | + const char *arg, | ||
| 29 | + Py_ssize_t arglen); | ||
| 30 | + | ||
| 31 | + PyAPI_FUNC(int) _Py_GetForceASCII(void); | ||
| 32 | + | ||
| 33 | + #ifdef __cplusplus | ||
| 34 | + } | ||
| 35 | + #endif | ||
| 36 | + #endif /* !Py_INTERNAL_FILEUTILS_H */ | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,6 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | 3 | #include "Python.h" | |
| 4 | 4 | #include "osdefs.h" | |
| 5 | + #include "pycore_fileutils.h" | ||
| 5 | 6 | #include "pycore_pathconfig.h" | |
| 6 | 7 | #include "pycore_state.h" | |
| 7 | 8 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -40,6 +40,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |||
| 40 | 40 | ||
| 41 | 41 | #define PY_SSIZE_T_CLEAN | |
| 42 | 42 | #include "Python.h" | |
| 43 | + #include "pycore_fileutils.h" | ||
| 43 | 44 | #include "pycore_state.h" | |
| 44 | 45 | #include "ucnhash.h" | |
| 45 | 46 | #include "bytes_methods.h" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,5 @@ | |||
| 1 | 1 | #include "Python.h" | |
| 2 | + #include "pycore_fileutils.h" | ||
| 2 | 3 | #include "pycore_lifecycle.h" | |
| 3 | 4 | #include "pycore_mem.h" | |
| 4 | 5 | #include "pycore_pathconfig.h" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,5 @@ | |||
| 1 | 1 | #include "Python.h" | |
| 2 | + #include "pycore_fileutils.h" | ||
| 2 | 3 | #include "osdefs.h" | |
| 3 | 4 | #include <locale.h> | |
| 4 | 5 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,6 +3,7 @@ | |||
| 3 | 3 | #include "Python.h" | |
| 4 | 4 | #include "osdefs.h" | |
| 5 | 5 | #include "pycore_mem.h" | |
| 6 | + #include "pycore_fileutils.h" | ||
| 6 | 7 | #include "pycore_pathconfig.h" | |
| 7 | 8 | #include "pycore_state.h" | |
| 8 | 9 | #include <wchar.h> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments