| 
									
										
										
										
											2010-12-03 20:14:31 +00:00
										 |  |  | #ifndef Py_LIMITED_API
 | 
					
						
							| 
									
										
										
										
											2000-07-09 00:20:36 +00:00
										 |  |  | #ifndef Py_COMPILE_H
 | 
					
						
							|  |  |  | #define Py_COMPILE_H
 | 
					
						
							| 
									
										
										
										
											2006-02-28 23:09:08 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | #include "code.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2000-07-09 00:20:36 +00:00
										 |  |  | #ifdef __cplusplus
 | 
					
						
							|  |  |  | extern "C" { | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1990-12-20 15:06:42 +00:00
										 |  |  | /* Public interface */ | 
					
						
							| 
									
										
										
										
											1991-04-03 19:00:55 +00:00
										 |  |  | struct _node; /* Declare the existence of this type */ | 
					
						
							| 
									
										
										
										
											2002-12-11 14:04:59 +00:00
										 |  |  | PyAPI_FUNC(PyCodeObject *) PyNode_Compile(struct _node *, const char *); | 
					
						
							| 
									
										
										
										
											1993-07-28 09:05:47 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-02-27 19:07:02 +00:00
										 |  |  | /* Future feature support */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | typedef struct { | 
					
						
							| 
									
										
										
										
											2005-10-20 19:59:25 +00:00
										 |  |  |     int ff_features;      /* flags set by future statements */ | 
					
						
							|  |  |  |     int ff_lineno;        /* line number of last future statement */ | 
					
						
							| 
									
										
										
										
											2001-02-27 19:07:02 +00:00
										 |  |  | } PyFutureFeatures; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #define FUTURE_NESTED_SCOPES "nested_scopes"
 | 
					
						
							| 
									
										
										
										
											2001-07-15 21:08:29 +00:00
										 |  |  | #define FUTURE_GENERATORS "generators"
 | 
					
						
							| 
									
										
										
										
											2001-08-08 05:00:18 +00:00
										 |  |  | #define FUTURE_DIVISION "division"
 | 
					
						
							| 
									
										
										
										
											2006-04-21 10:40:58 +00:00
										 |  |  | #define FUTURE_ABSOLUTE_IMPORT "absolute_import"
 | 
					
						
							| 
									
										
										
										
											2006-02-28 19:02:24 +00:00
										 |  |  | #define FUTURE_WITH_STATEMENT "with_statement"
 | 
					
						
							| 
									
										
										
										
											2008-03-20 23:02:08 +00:00
										 |  |  | #define FUTURE_PRINT_FUNCTION "print_function"
 | 
					
						
							| 
									
										
										
										
											2008-03-26 22:34:47 +00:00
										 |  |  | #define FUTURE_UNICODE_LITERALS "unicode_literals"
 | 
					
						
							| 
									
										
										
										
											2009-04-01 05:08:41 +00:00
										 |  |  | #define FUTURE_BARRY_AS_BDFL "barry_as_FLUFL"
 | 
					
						
							| 
									
										
										
										
											2001-08-08 05:00:18 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-10-20 19:59:25 +00:00
										 |  |  | struct _mod; /* Declare the existence of this type */ | 
					
						
							| 
									
										
										
										
											2010-12-04 10:26:46 +00:00
										 |  |  | #define PyAST_Compile(mod, s, f, ar) PyAST_CompileEx(mod, s, f, -1, ar)
 | 
					
						
							| 
									
										
										
										
											2010-12-27 01:49:31 +00:00
										 |  |  | PyAPI_FUNC(PyCodeObject *) PyAST_CompileEx( | 
					
						
							| 
									
										
										
										
											2010-12-27 02:39:20 +00:00
										 |  |  |     struct _mod *mod, | 
					
						
							| 
									
										
										
										
											2010-12-27 01:49:31 +00:00
										 |  |  |     const char *filename,       /* decoded from the filesystem encoding */ | 
					
						
							|  |  |  |     PyCompilerFlags *flags, | 
					
						
							|  |  |  |     int optimize, | 
					
						
							|  |  |  |     PyArena *arena); | 
					
						
							| 
									
										
										
										
											2005-10-23 19:06:02 +00:00
										 |  |  | PyAPI_FUNC(PyFutureFeatures *) PyFuture_FromAST(struct _mod *, const char *); | 
					
						
							| 
									
										
										
										
											2005-10-20 19:59:25 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1993-07-28 09:05:47 +00:00
										 |  |  | #ifdef __cplusplus
 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #endif /* !Py_COMPILE_H */
 | 
					
						
							| 
									
										
										
										
											2010-12-03 20:14:31 +00:00
										 |  |  | #endif /* !Py_LIMITED_API */
 |