| 
									
										
										
										
											2021-05-03 15:50:24 +01:00
										 |  |  | #ifndef Py_INTERNAL_STRUCTSEQ_H
 | 
					
						
							|  |  |  | #define Py_INTERNAL_STRUCTSEQ_H
 | 
					
						
							|  |  |  | #ifdef __cplusplus
 | 
					
						
							|  |  |  | extern "C" { | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifndef Py_BUILD_CORE
 | 
					
						
							|  |  |  | #  error "this header requires Py_BUILD_CORE define"
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-09 12:59:26 -07:00
										 |  |  | /* other API */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-25 05:16:28 +02:00
										 |  |  | // Export for '_curses' shared extension
 | 
					
						
							|  |  |  | PyAPI_FUNC(PyTypeObject*) _PyStructSequence_NewType( | 
					
						
							| 
									
										
										
										
											2022-01-21 03:30:20 +01:00
										 |  |  |     PyStructSequence_Desc *desc, | 
					
						
							|  |  |  |     unsigned long tp_flags); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-05-01 15:08:34 -06:00
										 |  |  | extern int _PyStructSequence_InitBuiltinWithFlags( | 
					
						
							| 
									
										
										
										
											2023-05-01 19:36:00 -06:00
										 |  |  |     PyInterpreterState *interp, | 
					
						
							| 
									
										
										
										
											2021-05-03 15:50:24 +01:00
										 |  |  |     PyTypeObject *type, | 
					
						
							|  |  |  |     PyStructSequence_Desc *desc, | 
					
						
							|  |  |  |     unsigned long tp_flags); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-07-25 12:47:31 -06:00
										 |  |  | static inline int | 
					
						
							| 
									
										
										
										
											2023-05-01 19:36:00 -06:00
										 |  |  | _PyStructSequence_InitBuiltin(PyInterpreterState *interp, | 
					
						
							|  |  |  |                               PyTypeObject *type, | 
					
						
							| 
									
										
										
										
											2022-07-25 12:47:31 -06:00
										 |  |  |                               PyStructSequence_Desc *desc) | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2023-05-01 19:36:00 -06:00
										 |  |  |     return _PyStructSequence_InitBuiltinWithFlags(interp, type, desc, 0); | 
					
						
							| 
									
										
										
										
											2022-07-25 12:47:31 -06:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-05-01 19:36:00 -06:00
										 |  |  | extern void _PyStructSequence_FiniBuiltin( | 
					
						
							|  |  |  |     PyInterpreterState *interp, | 
					
						
							|  |  |  |     PyTypeObject *type); | 
					
						
							| 
									
										
										
										
											2021-05-03 15:50:24 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | #ifdef __cplusplus
 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #endif /* !Py_INTERNAL_STRUCTSEQ_H */
 |