mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	 bcb094b41f
			
		
	
	
		bcb094b41f
		
			
		
	
	
	
	
		
			
			Pass the current interpreter (interp) rather than the current Python thread state (tstate) to internal functions which only use the interpreter. Modified functions: * _PyXXX_Fini() and _PyXXX_ClearFreeList() functions * _PyEval_SignalAsyncExc(), make_pending_calls() * _PySys_GetObject(), sys_set_object(), sys_set_object_id(), sys_set_object_str() * should_audit(), set_flags_from_config(), make_flags() * _PyAtExit_Call() * init_stdio_encoding() * etc.
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			633 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			633 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef Py_INTERNAL_WARNINGS_H
 | |
| #define Py_INTERNAL_WARNINGS_H
 | |
| #ifdef __cplusplus
 | |
| extern "C" {
 | |
| #endif
 | |
| 
 | |
| #ifndef Py_BUILD_CORE
 | |
| #  error "this header requires Py_BUILD_CORE define"
 | |
| #endif
 | |
| 
 | |
| struct _warnings_runtime_state {
 | |
|     /* Both 'filters' and 'onceregistry' can be set in warnings.py;
 | |
|        get_warnings_attr() will reset these variables accordingly. */
 | |
|     PyObject *filters;  /* List */
 | |
|     PyObject *once_registry;  /* Dict */
 | |
|     PyObject *default_action; /* String */
 | |
|     long filters_version;
 | |
| };
 | |
| 
 | |
| extern int _PyWarnings_InitState(PyInterpreterState *interp);
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| }
 | |
| #endif
 | |
| #endif /* !Py_INTERNAL_WARNINGS_H */
 |