source: trunk/essentials/dev-lang/python/Include/pythonrun.h@ 3367

Last change on this file since 3367 was 3225, checked in by bird, 19 years ago

Python 2.5

File size: 6.3 KB
Line 
1
2/* Interfaces to parse and execute pieces of python code */
3
4#ifndef Py_PYTHONRUN_H
5#define Py_PYTHONRUN_H
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10#define PyCF_MASK (CO_FUTURE_DIVISION | CO_FUTURE_ABSOLUTE_IMPORT | \
11 CO_FUTURE_WITH_STATEMENT)
12#define PyCF_MASK_OBSOLETE (CO_NESTED)
13#define PyCF_SOURCE_IS_UTF8 0x0100
14#define PyCF_DONT_IMPLY_DEDENT 0x0200
15#define PyCF_ONLY_AST 0x0400
16
17typedef struct {
18 int cf_flags; /* bitmask of CO_xxx flags relevant to future */
19} PyCompilerFlags;
20
21PyAPI_FUNC(void) Py_SetProgramName(char *);
22PyAPI_FUNC(char *) Py_GetProgramName(void);
23
24PyAPI_FUNC(void) Py_SetPythonHome(char *);
25PyAPI_FUNC(char *) Py_GetPythonHome(void);