mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	 987a0dcfa1
			
		
	
	
		987a0dcfa1
		
			
		
	
	
	
	
		
			
			* Rename PyImport_Cleanup() to _PyImport_Cleanup() and move it to the internal C API. Add 'tstate' parameters. * Remove documentation of _PyImport_Init(), PyImport_Cleanup(), _PyImport_Fini(). All three were documented as "For internal use only.".
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			449 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			449 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef Py_LIMITED_API
 | |
| #ifndef Py_INTERNAL_IMPORT_H
 | |
| #define Py_INTERNAL_IMPORT_H
 | |
| #ifdef __cplusplus
 | |
| extern "C" {
 | |
| #endif
 | |
| 
 | |
| PyAPI_FUNC(PyObject *) _PyImport_FindBuiltin(
 | |
|     PyThreadState *tstate,
 | |
|     const char *name             /* UTF-8 encoded string */
 | |
|     );
 | |
| 
 | |
| extern void _PyImport_ReInitLock(void);
 | |
| extern void _PyImport_Cleanup(PyThreadState *tstate);
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| }
 | |
| #endif
 | |
| #endif /* !Py_INTERNAL_IMPORT_H */
 | |
| #endif /* !Py_LIMITED_API */
 |