mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	 2ebc5ce42a
			
		
	
	
		2ebc5ce42a
		
	
	
	
	
		
			
			* group the (stateful) runtime globals into various topical structs * consolidate the topical structs under a single top-level _PyRuntimeState struct * add a check-c-globals.py script that helps identify runtime globals Other globals are excluded (see globals.txt and check-c-globals.py).
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			508 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			508 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef Py_INTERNAL_WARNINGS_H
 | |
| #define Py_INTERNAL_WARNINGS_H
 | |
| #ifdef __cplusplus
 | |
| extern "C" {
 | |
| #endif
 | |
| 
 | |
| #include "object.h"
 | |
| 
 | |
| 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;
 | |
| };
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| }
 | |
| #endif
 | |
| #endif /* !Py_INTERNAL_WARNINGS_H */
 |