~ubuntu-branches/ubuntu/natty/python3.1/natty-security

« back to all changes in this revision

Viewing changes to Include/pythonrun.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-07-06 16:52:42 UTC
  • mfrom: (1.2.1 upstream) (2.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20100706165242-2xv4i019r3et6c0j
Tags: 3.1.2+20100706-1ubuntu1
* Merge with Debian; remaining changes:
  - Regenerate the control file.
  - Add debian/patches/overwrite-semaphore-check for Lucid buildds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
#define PyCF_IGNORE_COOKIE 0x0800
18
18
 
19
19
typedef struct {
20
 
        int cf_flags;  /* bitmask of CO_xxx flags relevant to future */
 
20
    int cf_flags;  /* bitmask of CO_xxx flags relevant to future */
21
21
} PyCompilerFlags;
22
22
 
23
23
PyAPI_FUNC(void) Py_SetProgramName(wchar_t *);
40
40
PyAPI_FUNC(int) PyRun_InteractiveOneFlags(FILE *, const char *, PyCompilerFlags *);
41
41
PyAPI_FUNC(int) PyRun_InteractiveLoopFlags(FILE *, const char *, PyCompilerFlags *);
42
42
 
43
 
PyAPI_FUNC(struct _mod *) PyParser_ASTFromString(const char *, const char *, 
44
 
                                                 int, PyCompilerFlags *flags,
 
43
PyAPI_FUNC(struct _mod *) PyParser_ASTFromString(const char *, const char *,
 
44
                                                 int, PyCompilerFlags *flags,
45
45
                                                 PyArena *);
46
 
PyAPI_FUNC(struct _mod *) PyParser_ASTFromFile(FILE *, const char *, 
47
 
                                               const char*, int, 
48
 
                                               char *, char *,
 
46
PyAPI_FUNC(struct _mod *) PyParser_ASTFromFile(FILE *, const char *,
 
47
                                               const char*, int,
 
48
                                               char *, char *,
49
49
                                               PyCompilerFlags *, int *,
50
50
                                               PyArena *);
51
51
#define PyParser_SimpleParseString(S, B) \
52
 
        PyParser_SimpleParseStringFlags(S, B, 0)
 
52
    PyParser_SimpleParseStringFlags(S, B, 0)
53
53
#define PyParser_SimpleParseFile(FP, S, B) \
54
 
        PyParser_SimpleParseFileFlags(FP, S, B, 0)
55
 
PyAPI_FUNC(struct _node *) PyParser_SimpleParseStringFlags(const char *, int, 
56
 
                                                          int);
 
54
    PyParser_SimpleParseFileFlags(FP, S, B, 0)
 
55
PyAPI_FUNC(struct _node *) PyParser_SimpleParseStringFlags(const char *, int,
 
56
                                                          int);
57
57
PyAPI_FUNC(struct _node *) PyParser_SimpleParseFileFlags(FILE *, const char *,
58
 
                                                        int, int);
59
 
 
60
 
PyAPI_FUNC(PyObject *) PyRun_StringFlags(const char *, int, PyObject *, 
61
 
                                         PyObject *, PyCompilerFlags *);
62
 
 
63
 
PyAPI_FUNC(PyObject *) PyRun_FileExFlags(FILE *, const char *, int, 
64
 
                                         PyObject *, PyObject *, int, 
65
 
                                         PyCompilerFlags *);
 
58
                                                        int, int);
 
59
 
 
60
PyAPI_FUNC(PyObject *) PyRun_StringFlags(const char *, int, PyObject *,
 
61
                                         PyObject *, PyCompilerFlags *);
 
62
 
 
63
PyAPI_FUNC(PyObject *) PyRun_FileExFlags(FILE *, const char *, int,
 
64
                                         PyObject *, PyObject *, int,
 
65
                                         PyCompilerFlags *);
66
66
 
67
67
#define Py_CompileString(str, p, s) Py_CompileStringFlags(str, p, s, NULL)
68
68
PyAPI_FUNC(PyObject *) Py_CompileStringFlags(const char *, const char *, int,
69
 
                                             PyCompilerFlags *);
 
69
                                             PyCompilerFlags *);
70
70
PyAPI_FUNC(struct symtable *) Py_SymtableString(const char *, const char *, int);
71
71
 
72
72
PyAPI_FUNC(void) PyErr_Print(void);
90
90
#define PyRun_String(str, s, g, l) PyRun_StringFlags(str, s, g, l, NULL)
91
91
#define PyRun_AnyFile(fp, name) PyRun_AnyFileExFlags(fp, name, 0, NULL)
92
92
#define PyRun_AnyFileEx(fp, name, closeit) \
93
 
        PyRun_AnyFileExFlags(fp, name, closeit, NULL)
 
93
    PyRun_AnyFileExFlags(fp, name, closeit, NULL)
94
94
#define PyRun_AnyFileFlags(fp, name, flags) \
95
 
        PyRun_AnyFileExFlags(fp, name, 0, flags)
 
95
    PyRun_AnyFileExFlags(fp, name, 0, flags)
96
96
#define PyRun_SimpleString(s) PyRun_SimpleStringFlags(s, NULL)
97
97
#define PyRun_SimpleFile(f, p) PyRun_SimpleFileExFlags(f, p, 0, NULL)
98
98
#define PyRun_SimpleFileEx(f, p, c) PyRun_SimpleFileExFlags(f, p, c, NULL)
99
99
#define PyRun_InteractiveOne(f, p) PyRun_InteractiveOneFlags(f, p, NULL)
100
100
#define PyRun_InteractiveLoop(f, p) PyRun_InteractiveLoopFlags(f, p, NULL)
101
101
#define PyRun_File(fp, p, s, g, l) \
102
 
        PyRun_FileExFlags(fp, p, s, g, l, 0, NULL)
 
102
    PyRun_FileExFlags(fp, p, s, g, l, 0, NULL)
103
103
#define PyRun_FileEx(fp, p, s, g, l, c) \
104
 
        PyRun_FileExFlags(fp, p, s, g, l, c, NULL)
 
104
    PyRun_FileExFlags(fp, p, s, g, l, c, NULL)
105
105
#define PyRun_FileFlags(fp, p, s, g, l, flags) \
106
 
        PyRun_FileExFlags(fp, p, s, g, l, 0, flags)
 
106
    PyRun_FileExFlags(fp, p, s, g, l, 0, flags)
107
107
 
108
108
/* In getpath.c */
109
109
PyAPI_FUNC(wchar_t *) Py_GetProgramFullPath(void);