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

Delta Between Two Patch Sets: Include/compile.h

Issue 11619: On Windows, don't encode filenames in the import machinery
Left Patch Set: Created 8 years, 7 months ago
Right Patch Set: Created 6 years, 3 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:
Right: Side by side diff | Download
« no previous file with change/comment | « Include/ast.h ('k') | Include/parsetok.h » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 #ifndef Py_COMPILE_H 1 #ifndef Py_COMPILE_H
2 #define Py_COMPILE_H 2 #define Py_COMPILE_H
3 3
4 #ifndef Py_LIMITED_API 4 #ifndef Py_LIMITED_API
5 #include "code.h" 5 #include "code.h"
6 6
7 #ifdef __cplusplus 7 #ifdef __cplusplus
8 extern "C" { 8 extern "C" {
9 #endif 9 #endif
10 10
(...skipping 18 matching lines...) Expand all
29 #define FUTURE_BARRY_AS_BDFL "barry_as_FLUFL" 29 #define FUTURE_BARRY_AS_BDFL "barry_as_FLUFL"
30 30
31 struct _mod; /* Declare the existence of this type */ 31 struct _mod; /* Declare the existence of this type */
32 #define PyAST_Compile(mod, s, f, ar) PyAST_CompileEx(mod, s, f, -1, ar) 32 #define PyAST_Compile(mod, s, f, ar) PyAST_CompileEx(mod, s, f, -1, ar)
33 PyAPI_FUNC(PyCodeObject *) PyAST_CompileEx( 33 PyAPI_FUNC(PyCodeObject *) PyAST_CompileEx(
34 struct _mod *mod, 34 struct _mod *mod,
35 const char *filename, /* decoded from the filesystem encoding */ 35 const char *filename, /* decoded from the filesystem encoding */
36 PyCompilerFlags *flags, 36 PyCompilerFlags *flags,
37 int optimize, 37 int optimize,
38 PyArena *arena); 38 PyArena *arena);
39 PyAPI_FUNC(PyFutureFeatures *) PyFuture_FromAST(struct _mod *, const char *); 39 PyAPI_FUNC(PyCodeObject *) PyAST_CompileObject(
40 struct _mod *mod,
41 PyObject *filename,
42 PyCompilerFlags *flags,
43 int optimize,
44 PyArena *arena);
45 PyAPI_FUNC(PyFutureFeatures *) PyFuture_FromAST(
46 struct _mod * mod,
47 const char *filename /* decoded from the filesystem encoding */
48 );
49 PyAPI_FUNC(PyFutureFeatures *) PyFuture_FromASTObject(
50 struct _mod * mod,
51 PyObject *filename
52 );
40 53
41 /* _Py_Mangle is defined in compile.c */ 54 /* _Py_Mangle is defined in compile.c */
42 PyAPI_FUNC(PyObject*) _Py_Mangle(PyObject *p, PyObject *name); 55 PyAPI_FUNC(PyObject*) _Py_Mangle(PyObject *p, PyObject *name);
43 56
44 #ifdef __cplusplus 57 #ifdef __cplusplus
45 } 58 }
46 #endif 59 #endif
47 60
48 #endif /* !Py_LIMITED_API */ 61 #endif /* !Py_LIMITED_API */
49 62
50 /* These definitions must match corresponding definitions in graminit.h. 63 /* These definitions must match corresponding definitions in graminit.h.
51 There's code in compile.c that checks that they are the same. */ 64 There's code in compile.c that checks that they are the same. */
52 #define Py_single_input 256 65 #define Py_single_input 256
53 #define Py_file_input 257 66 #define Py_file_input 257
54 #define Py_eval_input 258 67 #define Py_eval_input 258
55 68
56 #endif /* !Py_COMPILE_H */ 69 #endif /* !Py_COMPILE_H */
LEFTRIGHT

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