mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Close #11619: The parser and the import machinery do not encode Unicode
filenames anymore on Windows.
This commit is contained in:
parent
33824f6fd7
commit
14e461d5b9
22 changed files with 514 additions and 175 deletions
|
@ -16,7 +16,7 @@ typedef enum _block_type { FunctionBlock, ClassBlock, ModuleBlock }
|
|||
struct _symtable_entry;
|
||||
|
||||
struct symtable {
|
||||
const char *st_filename; /* name of file being compiled,
|
||||
PyObject *st_filename; /* name of file being compiled,
|
||||
decoded from the filesystem encoding */
|
||||
struct _symtable_entry *st_cur; /* current symbol table entry */
|
||||
struct _symtable_entry *st_top; /* symbol table entry for module */
|
||||
|
@ -74,6 +74,10 @@ PyAPI_FUNC(struct symtable *) PySymtable_Build(
|
|||
mod_ty mod,
|
||||
const char *filename, /* decoded from the filesystem encoding */
|
||||
PyFutureFeatures *future);
|
||||
PyAPI_FUNC(struct symtable *) PySymtable_BuildObject(
|
||||
mod_ty mod,
|
||||
PyObject *filename,
|
||||
PyFutureFeatures *future);
|
||||
PyAPI_FUNC(PySTEntryObject *) PySymtable_Lookup(struct symtable *, void *);
|
||||
|
||||
PyAPI_FUNC(void) PySymtable_Free(struct symtable *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue