summaryrefslogtreecommitdiff
path: root/Include/symtable.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-12-27 01:49:31 +0000
committerVictor Stinner <victor.stinner@haypocalc.com>2010-12-27 01:49:31 +0000
commit00676d143626dbbb7e1ad456ed013afba4420978 (patch)
treeb6b69033c0a0dce310dfc27d77aed2738864f4cc /Include/symtable.h
parentdc2081f72bfef321f60548da4353e7fe91e35e4d (diff)
downloadcpython-git-00676d143626dbbb7e1ad456ed013afba4420978.tar.gz
Issue #9738: Document encodings of AST, compiler, parser and PyRun functions
Diffstat (limited to 'Include/symtable.h')
-rw-r--r--Include/symtable.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/Include/symtable.h b/Include/symtable.h
index 2ad204dd03..fd7de049b6 100644
--- a/Include/symtable.h
+++ b/Include/symtable.h
@@ -16,7 +16,8 @@ typedef enum _block_type { FunctionBlock, ClassBlock, ModuleBlock }
struct _symtable_entry;
struct symtable {
- const char *st_filename; /* name of file being compiled */
+ const char *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 */
PyObject *st_blocks; /* dict: map AST node addresses
@@ -60,8 +61,10 @@ PyAPI_DATA(PyTypeObject) PySTEntry_Type;
PyAPI_FUNC(int) PyST_GetScope(PySTEntryObject *, PyObject *);
-PyAPI_FUNC(struct symtable *) PySymtable_Build(mod_ty, const char *,
- PyFutureFeatures *);
+PyAPI_FUNC(struct symtable *) PySymtable_Build(
+ mod_ty mod,
+ const char *filename, /* decoded from the filesystem encoding */
+ PyFutureFeatures *future);
PyAPI_FUNC(PySTEntryObject *) PySymtable_Lookup(struct symtable *, void *);
PyAPI_FUNC(void) PySymtable_Free(struct symtable *);