mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	gh-131238: Cleanup pycore_runtime.h includes (#131486)
This commit is contained in:
		
							parent
							
								
									344f3c3fd4
								
							
						
					
					
						commit
						6c776abb90
					
				
					 5 changed files with 4 additions and 6 deletions
				
			
		| 
						 | 
					@ -1,7 +1,7 @@
 | 
				
			||||||
#ifndef Py_EMSCRIPTEN_TRAMPOLINE_H
 | 
					#ifndef Py_EMSCRIPTEN_TRAMPOLINE_H
 | 
				
			||||||
#define Py_EMSCRIPTEN_TRAMPOLINE_H
 | 
					#define Py_EMSCRIPTEN_TRAMPOLINE_H
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "pycore_runtime.h"  // _PyRuntimeState
 | 
					#include "pycore_typedefs.h"      // _PyRuntimeState
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * C function call trampolines to mitigate bad function pointer casts.
 | 
					 * C function call trampolines to mitigate bad function pointer casts.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,9 +9,7 @@ extern "C" {
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "pycore_bytesobject.h"   // _PyBytesWriter
 | 
					#include "pycore_bytesobject.h"   // _PyBytesWriter
 | 
				
			||||||
#include "pycore_runtime_structs.h"// _PY_NSMALLNEGINTS
 | 
					#include "pycore_runtime.h"       // _Py_SINGLETON()
 | 
				
			||||||
#include "pycore_global_objects.h"// _PY_SINGLETON
 | 
					 | 
				
			||||||
#include "pycore_runtime.h"       // _PyRuntime
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Default int base conversion size limitation: Denial of Service prevention.
 | 
					 * Default int base conversion size limitation: Denial of Service prevention.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13,6 +13,7 @@ extern "C" {
 | 
				
			||||||
#include "pycore_object_deferred.h" // _PyObject_HasDeferredRefcount
 | 
					#include "pycore_object_deferred.h" // _PyObject_HasDeferredRefcount
 | 
				
			||||||
#include "pycore_pyatomic_ft_wrappers.h"  // FT_ATOMIC_STORE_PTR_RELAXED
 | 
					#include "pycore_pyatomic_ft_wrappers.h"  // FT_ATOMIC_STORE_PTR_RELAXED
 | 
				
			||||||
#include "pycore_pystate.h"       // _PyInterpreterState_GET()
 | 
					#include "pycore_pystate.h"       // _PyInterpreterState_GET()
 | 
				
			||||||
 | 
					#include "pycore_runtime.h"       // _PyRuntime
 | 
				
			||||||
#include "pycore_typeobject.h"    // _PyStaticType_GetState()
 | 
					#include "pycore_typeobject.h"    // _PyStaticType_GetState()
 | 
				
			||||||
#include "pycore_uniqueid.h"      // _PyObject_ThreadIncrefSlow()
 | 
					#include "pycore_uniqueid.h"      // _PyObject_ThreadIncrefSlow()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,7 +8,7 @@ extern "C" {
 | 
				
			||||||
#  error "this header requires Py_BUILD_CORE define"
 | 
					#  error "this header requires Py_BUILD_CORE define"
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "pycore_runtime.h"       // _PyRuntimeState
 | 
					#include "pycore_typedefs.h"      // _PyRuntimeState
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Forward declarations */
 | 
					/* Forward declarations */
 | 
				
			||||||
struct _PyArgv;
 | 
					struct _PyArgv;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -10,7 +10,6 @@ extern "C" {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "pycore_fileutils.h"     // _Py_error_handler
 | 
					#include "pycore_fileutils.h"     // _Py_error_handler
 | 
				
			||||||
#include "pycore_ucnhash.h"       // _PyUnicode_Name_CAPI
 | 
					#include "pycore_ucnhash.h"       // _PyUnicode_Name_CAPI
 | 
				
			||||||
#include "pycore_global_objects.h"  // _Py_SINGLETON
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* --- Characters Type APIs ----------------------------------------------- */
 | 
					/* --- Characters Type APIs ----------------------------------------------- */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue