| 
									
										
										
										
											2017-12-14 23:48:12 -08:00
										 |  |  | #ifndef Py_INTERNAL_PYGETOPT_H
 | 
					
						
							|  |  |  | #define Py_INTERNAL_PYGETOPT_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-04-17 23:02:26 +02:00
										 |  |  | #ifndef Py_BUILD_CORE
 | 
					
						
							|  |  |  | #  error "this header requires Py_BUILD_CORE define"
 | 
					
						
							| 
									
										
										
										
											2018-11-09 13:03:37 +01:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-12-17 10:34:00 -08:00
										 |  |  | extern int _PyOS_opterr; | 
					
						
							| 
									
										
										
										
											2019-03-15 15:08:05 +01:00
										 |  |  | extern Py_ssize_t _PyOS_optind; | 
					
						
							|  |  |  | extern const wchar_t *_PyOS_optarg; | 
					
						
							| 
									
										
										
										
											2017-12-14 23:48:12 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-12-17 10:34:00 -08:00
										 |  |  | extern void _PyOS_ResetGetOpt(void); | 
					
						
							| 
									
										
										
										
											2017-12-14 23:48:12 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | typedef struct { | 
					
						
							|  |  |  |     const wchar_t *name; | 
					
						
							|  |  |  |     int has_arg; | 
					
						
							|  |  |  |     int val; | 
					
						
							|  |  |  | } _PyOS_LongOption; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-17 03:15:12 +02:00
										 |  |  | extern int _PyOS_GetOpt(Py_ssize_t argc, wchar_t * const *argv, int *longindex); | 
					
						
							| 
									
										
										
										
											2017-12-14 23:48:12 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | #endif /* !Py_INTERNAL_PYGETOPT_H */
 |