Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(79407)

Side by Side Diff: Include/pythonrun.h

Issue 11619: On Windows, don't encode filenames in the import machinery
Patch Set: Created 5 years, 12 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Include/pyerrors.h ('k') | Include/symtable.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* Interfaces to parse and execute pieces of python code */ 2 /* Interfaces to parse and execute pieces of python code */
3 3
4 #ifndef Py_PYTHONRUN_H 4 #ifndef Py_PYTHONRUN_H
5 #define Py_PYTHONRUN_H 5 #define Py_PYTHONRUN_H
6 #ifdef __cplusplus 6 #ifdef __cplusplus
7 extern "C" { 7 extern "C" {
8 #endif 8 #endif
9 9
10 #define PyCF_MASK (CO_FUTURE_DIVISION | CO_FUTURE_ABSOLUTE_IMPORT | \ 10 #define PyCF_MASK (CO_FUTURE_DIVISION | CO_FUTURE_ABSOLUTE_IMPORT | \
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 const char *filename, /* decoded from the filesystem encoding */ 56 const char *filename, /* decoded from the filesystem encoding */
57 PyCompilerFlags *flags); 57 PyCompilerFlags *flags);
58 PyAPI_FUNC(int) PyRun_InteractiveLoopFlags( 58 PyAPI_FUNC(int) PyRun_InteractiveLoopFlags(
59 FILE *fp, 59 FILE *fp,
60 const char *filename, /* decoded from the filesystem encoding */ 60 const char *filename, /* decoded from the filesystem encoding */
61 PyCompilerFlags *flags); 61 PyCompilerFlags *flags);
62 62
63 PyAPI_FUNC(struct _mod *) PyParser_ASTFromString( 63 PyAPI_FUNC(struct _mod *) PyParser_ASTFromString(
64 const char *s, 64 const char *s,
65 const char *filename, /* decoded from the filesystem encoding */ 65 const char *filename, /* decoded from the filesystem encoding */
66 int start,
67 PyCompilerFlags *flags,
68 PyArena *arena);
69 PyAPI_FUNC(struct _mod *) PyParser_ASTFromStringObject(
70 const char *s,
71 PyObject *filename,
66 int start, 72 int start,
67 PyCompilerFlags *flags, 73 PyCompilerFlags *flags,
68 PyArena *arena); 74 PyArena *arena);
69 PyAPI_FUNC(struct _mod *) PyParser_ASTFromFile( 75 PyAPI_FUNC(struct _mod *) PyParser_ASTFromFile(
70 FILE *fp, 76 FILE *fp,
71 const char *filename, /* decoded from the filesystem encoding */ 77 const char *filename, /* decoded from the filesystem encoding */
72 const char* enc, 78 const char* enc,
73 int start, 79 int start,
74 char *ps1, 80 char *ps1,
75 char *ps2, 81 char *ps2,
82 PyCompilerFlags *flags,
83 int *errcode,
84 PyArena *arena);
85 PyAPI_FUNC(struct _mod *) PyParser_ASTFromFileObject(
86 FILE *fp,
87 PyObject *filename,
88 const char* enc,
89 int start,
90 char *ps1,
91 char *ps2,
76 PyCompilerFlags *flags, 92 PyCompilerFlags *flags,
77 int *errcode, 93 int *errcode,
78 PyArena *arena); 94 PyArena *arena);
79 #endif 95 #endif
80 96
81 #ifndef PyParser_SimpleParseString 97 #ifndef PyParser_SimpleParseString
82 #define PyParser_SimpleParseString(S, B) \ 98 #define PyParser_SimpleParseString(S, B) \
83 PyParser_SimpleParseStringFlags(S, B, 0) 99 PyParser_SimpleParseStringFlags(S, B, 0)
84 #define PyParser_SimpleParseFile(FP, S, B) \ 100 #define PyParser_SimpleParseFile(FP, S, B) \
85 PyParser_SimpleParseFileFlags(FP, S, B, 0) 101 PyParser_SimpleParseFileFlags(FP, S, B, 0)
(...skipping 28 matching lines...) Expand all
114 PyAPI_FUNC(PyObject *) Py_CompileStringExFlags( 130 PyAPI_FUNC(PyObject *) Py_CompileStringExFlags(
115 const char *str, 131 const char *str,
116 const char *filename, /* decoded from the filesystem encoding */ 132 const char *filename, /* decoded from the filesystem encoding */
117 int start, 133 int start,
118 PyCompilerFlags *flags, 134 PyCompilerFlags *flags,
119 int optimize); 135 int optimize);
120 #endif 136 #endif
121 PyAPI_FUNC(struct symtable *) Py_SymtableString( 137 PyAPI_FUNC(struct symtable *) Py_SymtableString(
122 const char *str, 138 const char *str,
123 const char *filename, /* decoded from the filesystem encoding */ 139 const char *filename, /* decoded from the filesystem encoding */
140 int start);
141 PyAPI_FUNC(struct symtable *) Py_SymtableStringObject(
142 const char *str,
143 PyObject *filename,
124 int start); 144 int start);
125 145
126 PyAPI_FUNC(void) PyErr_Print(void); 146 PyAPI_FUNC(void) PyErr_Print(void);
127 PyAPI_FUNC(void) PyErr_PrintEx(int); 147 PyAPI_FUNC(void) PyErr_PrintEx(int);
128 PyAPI_FUNC(void) PyErr_Display(PyObject *, PyObject *, PyObject *); 148 PyAPI_FUNC(void) PyErr_Display(PyObject *, PyObject *, PyObject *);
129 149
130 /* Py_PyAtExit is for the atexit module, Py_AtExit is for low-level 150 /* Py_PyAtExit is for the atexit module, Py_AtExit is for low-level
131 * exit functions. 151 * exit functions.
132 */ 152 */
133 #ifndef Py_LIMITED_API 153 #ifndef Py_LIMITED_API
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 PyAPI_FUNC(PyOS_sighandler_t) PyOS_getsig(int); 275 PyAPI_FUNC(PyOS_sighandler_t) PyOS_getsig(int);
256 PyAPI_FUNC(PyOS_sighandler_t) PyOS_setsig(int, PyOS_sighandler_t); 276 PyAPI_FUNC(PyOS_sighandler_t) PyOS_setsig(int, PyOS_sighandler_t);
257 277
258 /* Random */ 278 /* Random */
259 PyAPI_FUNC(int) _PyOS_URandom (void *buffer, Py_ssize_t size); 279 PyAPI_FUNC(int) _PyOS_URandom (void *buffer, Py_ssize_t size);
260 280
261 #ifdef __cplusplus 281 #ifdef __cplusplus
262 } 282 }
263 #endif 283 #endif
264 #endif /* !Py_PYTHONRUN_H */ 284 #endif /* !Py_PYTHONRUN_H */
OLDNEW
« no previous file with comments | « Include/pyerrors.h ('k') | Include/symtable.h » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+