mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	bpo-35134, bpo-40421: Add Include/cpython/code.h header file. code.h now defines PyCodeObject type in the limited C API. It is now included by Python.h. Give a name to the PyCodeObject structure: it is now called "struct PyCodeObject". So it becomes possible to define PyCodeObject as "struct PyCodeObject" in the limited C API without defining the structure.
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			318 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			318 B
		
	
	
	
		
			C
		
	
	
	
	
	
/* Definitions for bytecode */
 | 
						|
 | 
						|
#ifndef Py_CODE_H
 | 
						|
#define Py_CODE_H
 | 
						|
#ifdef __cplusplus
 | 
						|
extern "C" {
 | 
						|
#endif
 | 
						|
 | 
						|
typedef struct PyCodeObject PyCodeObject;
 | 
						|
 | 
						|
#ifndef Py_LIMITED_API
 | 
						|
#  define Py_CPYTHON_CODE_H
 | 
						|
#  include  "cpython/code.h"
 | 
						|
#  undef Py_CPYTHON_CODE_H
 | 
						|
#endif
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
}
 | 
						|
#endif
 | 
						|
#endif /* !Py_CODE_H */
 |