comparison Include/pythonrun.h @ 85417:df2fdd42b375

Close #11619: The parser and the import machinery do not encode Unicode filenames anymore on Windows.
author Victor Stinner <victor.stinner@gmail.com>
date Mon, 26 Aug 2013 22:28:21 +0200
parents fc718c177ee6
children acc7439b1406
comparison
equal deleted inserted replaced
85416:8fb3a6f9b0a4 85417:df2fdd42b375
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, 66 int start,
67 PyCompilerFlags *flags, 67 PyCompilerFlags *flags,
68 PyArena *arena); 68 PyArena *arena);
69 PyAPI_FUNC(struct _mod *) PyParser_ASTFromStringObject(
70 const char *s,
71 PyObject *filename,
72 int start,
73 PyCompilerFlags *flags,
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 */
78 const char* enc,
79 int start,
80 char *ps1,
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,
72 const char* enc, 88 const char* enc,
73 int start, 89 int start,
74 char *ps1, 90 char *ps1,
75 char *ps2, 91 char *ps2,
76 PyCompilerFlags *flags, 92 PyCompilerFlags *flags,
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);
136 PyAPI_FUNC(PyObject *) Py_CompileStringObject(
137 const char *str,
138 PyObject *filename, int start,
139 PyCompilerFlags *flags,
140 int optimize);
120 #endif 141 #endif
121 PyAPI_FUNC(struct symtable *) Py_SymtableString( 142 PyAPI_FUNC(struct symtable *) Py_SymtableString(
122 const char *str, 143 const char *str,
123 const char *filename, /* decoded from the filesystem encoding */ 144 const char *filename, /* decoded from the filesystem encoding */
145 int start);
146 PyAPI_FUNC(struct symtable *) Py_SymtableStringObject(
147 const char *str,
148 PyObject *filename,
124 int start); 149 int start);
125 150
126 PyAPI_FUNC(void) PyErr_Print(void); 151 PyAPI_FUNC(void) PyErr_Print(void);
127 PyAPI_FUNC(void) PyErr_PrintEx(int); 152 PyAPI_FUNC(void) PyErr_PrintEx(int);
128 PyAPI_FUNC(void) PyErr_Display(PyObject *, PyObject *, PyObject *); 153 PyAPI_FUNC(void) PyErr_Display(PyObject *, PyObject *, PyObject *);