mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	This includes adding pickle support to various classes, and small changes to improve the maintainability of the low-level _xxinterpqueues module.
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			483 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			483 B
		
	
	
	
		
			C
		
	
	
	
	
	
 | 
						|
#define _RESOLVE_MODINIT_FUNC_NAME(NAME) \
 | 
						|
    PyInit_ ## NAME
 | 
						|
#define RESOLVE_MODINIT_FUNC_NAME(NAME) \
 | 
						|
    _RESOLVE_MODINIT_FUNC_NAME(NAME)
 | 
						|
 | 
						|
 | 
						|
static int
 | 
						|
ensure_xid_class(PyTypeObject *cls, crossinterpdatafunc getdata)
 | 
						|
{
 | 
						|
    //assert(cls->tp_flags & Py_TPFLAGS_HEAPTYPE);
 | 
						|
    return _PyCrossInterpreterData_RegisterClass(cls, getdata);
 | 
						|
}
 | 
						|
 | 
						|
#ifdef REGISTERS_HEAP_TYPES
 | 
						|
static int
 | 
						|
clear_xid_class(PyTypeObject *cls)
 | 
						|
{
 | 
						|
    return _PyCrossInterpreterData_UnregisterClass(cls);
 | 
						|
}
 | 
						|
#endif
 |