comparison Include/pythonrun.h @ 61463:fd25030223b0 legacy-trunk

Untabify C files. Will watch buildbots.
author Antoine Pitrou <solipsis@pitrou.net>
date Sun, 09 May 2010 14:46:46 +0000
parents 9b358eae532a
children b36cb4602e21
comparison
equal deleted inserted replaced
61460:d698fb056a45 61463:fd25030223b0
14 #define PyCF_SOURCE_IS_UTF8 0x0100 14 #define PyCF_SOURCE_IS_UTF8 0x0100
15 #define PyCF_DONT_IMPLY_DEDENT 0x0200 15 #define PyCF_DONT_IMPLY_DEDENT 0x0200
16 #define PyCF_ONLY_AST 0x0400 16 #define PyCF_ONLY_AST 0x0400
17 17
18 typedef struct { 18 typedef struct {
19 int cf_flags; /* bitmask of CO_xxx flags relevant to future */ 19 int cf_flags; /* bitmask of CO_xxx flags relevant to future */
20 } PyCompilerFlags; 20 } PyCompilerFlags;
21 21
22 PyAPI_FUNC(void) Py_SetProgramName(char *); 22 PyAPI_FUNC(void) Py_SetProgramName(char *);
23 PyAPI_FUNC(char *) Py_GetProgramName(void); 23 PyAPI_FUNC(char *) Py_GetProgramName(void);
24 24
37 PyAPI_FUNC(int) PyRun_SimpleStringFlags(const char *, PyCompilerFlags *); 37 PyAPI_FUNC(int) PyRun_SimpleStringFlags(const char *, PyCompilerFlags *);
38 PyAPI_FUNC(int) PyRun_SimpleFileExFlags(FILE *, const char *, int, PyCompilerFlags *); 38 PyAPI_FUNC(int) PyRun_SimpleFileExFlags(FILE *, const char *, int, PyCompilerFlags *);
39 PyAPI_FUNC(int) PyRun_InteractiveOneFlags(FILE *, const char *, PyCompilerFlags *); 39 PyAPI_FUNC(int) PyRun_InteractiveOneFlags(FILE *, const char *, PyCompilerFlags *);
40 PyAPI_FUNC(int) PyRun_InteractiveLoopFlags(FILE *, const char *, PyCompilerFlags *); 40 PyAPI_FUNC(int) PyRun_InteractiveLoopFlags(FILE *, const char *, PyCompilerFlags *);
41 41
42 PyAPI_FUNC(struct _mod *) PyParser_ASTFromString(const char *, const char *, 42 PyAPI_FUNC(struct _mod *) PyParser_ASTFromString(const char *, const char *,
43 int, PyCompilerFlags *flags, 43 int, PyCompilerFlags *flags,
44 PyArena *); 44 PyArena *);
45 PyAPI_FUNC(struct _mod *) PyParser_ASTFromFile(FILE *, const char *, int, 45 PyAPI_FUNC(struct _mod *) PyParser_ASTFromFile(FILE *, const char *, int,
46 char *, char *, 46 char *, char *,
47 PyCompilerFlags *, int *, 47 PyCompilerFlags *, int *,
48 PyArena *); 48 PyArena *);
49 #define PyParser_SimpleParseString(S, B) \ 49 #define PyParser_SimpleParseString(S, B) \
50 PyParser_SimpleParseStringFlags(S, B, 0) 50 PyParser_SimpleParseStringFlags(S, B, 0)
51 #define PyParser_SimpleParseFile(FP, S, B) \ 51 #define PyParser_SimpleParseFile(FP, S, B) \
52 PyParser_SimpleParseFileFlags(FP, S, B, 0) 52 PyParser_SimpleParseFileFlags(FP, S, B, 0)
53 PyAPI_FUNC(struct _node *) PyParser_SimpleParseStringFlags(const char *, int, 53 PyAPI_FUNC(struct _node *) PyParser_SimpleParseStringFlags(const char *, int,
54 int); 54 int);
55 PyAPI_FUNC(struct _node *) PyParser_SimpleParseFileFlags(FILE *, const char *, 55 PyAPI_FUNC(struct _node *) PyParser_SimpleParseFileFlags(FILE *, const char *,
56 int, int); 56 int, int);
57 57
58 PyAPI_FUNC(PyObject *) PyRun_StringFlags(const char *, int, PyObject *, 58 PyAPI_FUNC(PyObject *) PyRun_StringFlags(const char *, int, PyObject *,
59 PyObject *, PyCompilerFlags *); 59 PyObject *, PyCompilerFlags *);
60 60
61 PyAPI_FUNC(PyObject *) PyRun_FileExFlags(FILE *, const char *, int, 61 PyAPI_FUNC(PyObject *) PyRun_FileExFlags(FILE *, const char *, int,
62 PyObject *, PyObject *, int, 62 PyObject *, PyObject *, int,
63 PyCompilerFlags *); 63 PyCompilerFlags *);
64 64
65 #define Py_CompileString(str, p, s) Py_CompileStringFlags(str, p, s, NULL) 65 #define Py_CompileString(str, p, s) Py_CompileStringFlags(str, p, s, NULL)
66 PyAPI_FUNC(PyObject *) Py_CompileStringFlags(const char *, const char *, int, 66 PyAPI_FUNC(PyObject *) Py_CompileStringFlags(const char *, const char *, int,
67 PyCompilerFlags *); 67 PyCompilerFlags *);
68 PyAPI_FUNC(struct symtable *) Py_SymtableString(const char *, const char *, int); 68 PyAPI_FUNC(struct symtable *) Py_SymtableString(const char *, const char *, int);
69 69
70 PyAPI_FUNC(void) PyErr_Print(void); 70 PyAPI_FUNC(void) PyErr_Print(void);
71 PyAPI_FUNC(void) PyErr_PrintEx(int); 71 PyAPI_FUNC(void) PyErr_PrintEx(int);
72 PyAPI_FUNC(void) PyErr_Display(PyObject *, PyObject *, PyObject *); 72 PyAPI_FUNC(void) PyErr_Display(PyObject *, PyObject *, PyObject *);
82 82
83 /* Use macros for a bunch of old variants */ 83 /* Use macros for a bunch of old variants */
84 #define PyRun_String(str, s, g, l) PyRun_StringFlags(str, s, g, l, NULL) 84 #define PyRun_String(str, s, g, l) PyRun_StringFlags(str, s, g, l, NULL)
85 #define PyRun_AnyFile(fp, name) PyRun_AnyFileExFlags(fp, name, 0, NULL) 85 #define PyRun_AnyFile(fp, name) PyRun_AnyFileExFlags(fp, name, 0, NULL)
86 #define PyRun_AnyFileEx(fp, name, closeit) \ 86 #define PyRun_AnyFileEx(fp, name, closeit) \
87 PyRun_AnyFileExFlags(fp, name, closeit, NULL) 87 PyRun_AnyFileExFlags(fp, name, closeit, NULL)
88 #define PyRun_AnyFileFlags(fp, name, flags) \ 88 #define PyRun_AnyFileFlags(fp, name, flags) \
89 PyRun_AnyFileExFlags(fp, name, 0, flags) 89 PyRun_AnyFileExFlags(fp, name, 0, flags)
90 #define PyRun_SimpleString(s) PyRun_SimpleStringFlags(s, NULL) 90 #define PyRun_SimpleString(s) PyRun_SimpleStringFlags(s, NULL)
91 #define PyRun_SimpleFile(f, p) PyRun_SimpleFileExFlags(f, p, 0, NULL) 91 #define PyRun_SimpleFile(f, p) PyRun_SimpleFileExFlags(f, p, 0, NULL)
92 #define PyRun_SimpleFileEx(f, p, c) PyRun_SimpleFileExFlags(f, p, c, NULL) 92 #define PyRun_SimpleFileEx(f, p, c) PyRun_SimpleFileExFlags(f, p, c, NULL)
93 #define PyRun_InteractiveOne(f, p) PyRun_InteractiveOneFlags(f, p, NULL) 93 #define PyRun_InteractiveOne(f, p) PyRun_InteractiveOneFlags(f, p, NULL)
94 #define PyRun_InteractiveLoop(f, p) PyRun_InteractiveLoopFlags(f, p, NULL) 94 #define PyRun_InteractiveLoop(f, p) PyRun_InteractiveLoopFlags(f, p, NULL)
95 #define PyRun_File(fp, p, s, g, l) \ 95 #define PyRun_File(fp, p, s, g, l) \
96 PyRun_FileExFlags(fp, p, s, g, l, 0, NULL) 96 PyRun_FileExFlags(fp, p, s, g, l, 0, NULL)
97 #define PyRun_FileEx(fp, p, s, g, l, c) \ 97 #define PyRun_FileEx(fp, p, s, g, l, c) \
98 PyRun_FileExFlags(fp, p, s, g, l, c, NULL) 98 PyRun_FileExFlags(fp, p, s, g, l, c, NULL)
99 #define PyRun_FileFlags(fp, p, s, g, l, flags) \ 99 #define PyRun_FileFlags(fp, p, s, g, l, flags) \
100 PyRun_FileExFlags(fp, p, s, g, l, 0, flags) 100 PyRun_FileExFlags(fp, p, s, g, l, 0, flags)
101 101
102 /* In getpath.c */ 102 /* In getpath.c */
103 PyAPI_FUNC(char *) Py_GetProgramFullPath(void); 103 PyAPI_FUNC(char *) Py_GetProgramFullPath(void);
104 PyAPI_FUNC(char *) Py_GetPrefix(void); 104 PyAPI_FUNC(char *) Py_GetPrefix(void);
105 PyAPI_FUNC(char *) Py_GetExecPrefix(void); 105 PyAPI_FUNC(char *) Py_GetExecPrefix(void);