mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 11:49:12 +00:00 
			
		
		
		
	Move CPython C API from Include/fileutils.h into a new Include/cpython/fileutils.h header file which is included by Include/fileutils.h. Exclude the following private symbols from the limited C API: * _Py_error_handler * _Py_GetErrorHandler() * _Py_DecodeLocaleEx() * _Py_EncodeLocaleEx()
		
			
				
	
	
		
			30 lines
		
	
	
	
		
			597 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
	
		
			597 B
		
	
	
	
		
			C
		
	
	
	
	
	
#ifndef Py_FILEUTILS_H
 | 
						|
#define Py_FILEUTILS_H
 | 
						|
#ifdef __cplusplus
 | 
						|
extern "C" {
 | 
						|
#endif
 | 
						|
 | 
						|
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
 | 
						|
PyAPI_FUNC(wchar_t *) Py_DecodeLocale(
 | 
						|
    const char *arg,
 | 
						|
    size_t *size);
 | 
						|
 | 
						|
PyAPI_FUNC(char*) Py_EncodeLocale(
 | 
						|
    const wchar_t *text,
 | 
						|
    size_t *error_pos);
 | 
						|
 | 
						|
PyAPI_FUNC(char*) _Py_EncodeLocaleRaw(
 | 
						|
    const wchar_t *text,
 | 
						|
    size_t *error_pos);
 | 
						|
#endif
 | 
						|
 | 
						|
#ifndef Py_LIMITED_API
 | 
						|
#  define Py_CPYTHON_FILEUTILS_H
 | 
						|
#  include  "cpython/fileutils.h"
 | 
						|
#  undef Py_CPYTHON_FILEUTILS_H
 | 
						|
#endif
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
}
 | 
						|
#endif
 | 
						|
#endif /* !Py_FILEUTILS_H */
 |