summaryrefslogtreecommitdiff
path: root/Include/symtable.h
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2005-10-24 00:30:44 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2005-10-24 00:30:44 +0000
commitad95d3c716b2011682228e1b20c9e2070c3eae6c (patch)
treeb2437aaa371d5e8ddc63d54fe67b4699ce7a67c0 /Include/symtable.h
parent8634f8d751d0e39f0716dda3b735eb2d6b9472f8 (diff)
downloadcpython-ad95d3c716b2011682228e1b20c9e2070c3eae6c.tar.gz
Do not pollute name block_ty, prefix with _Py_
Diffstat (limited to 'Include/symtable.h')
-rw-r--r--Include/symtable.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Include/symtable.h b/Include/symtable.h
index ad7334b56c..d1e7b3553f 100644
--- a/Include/symtable.h
+++ b/Include/symtable.h
@@ -5,7 +5,7 @@ extern "C" {
#endif
typedef enum _block_type { FunctionBlock, ClassBlock, ModuleBlock }
- block_ty;
+ _Py_block_ty;
struct _symtable_entry;
@@ -29,7 +29,7 @@ typedef struct _symtable_entry {
PyObject *ste_name; /* string: name of block */
PyObject *ste_varnames; /* list of variable names */
PyObject *ste_children; /* list of child ids */
- block_ty ste_type; /* module, class, or function */
+ _Py_block_ty ste_type; /* module, class, or function */
int ste_unoptimized; /* false if namespace is optimized */
int ste_nested : 1; /* true if block is nested */
int ste_free : 1; /* true if block has free variables */
@@ -49,7 +49,7 @@ PyAPI_DATA(PyTypeObject) PySTEntry_Type;
#define PySTEntry_Check(op) ((op)->ob_type == &PySTEntry_Type)
PyAPI_FUNC(PySTEntryObject *) \
- PySTEntry_New(struct symtable *, identifier, block_ty, void *, int);
+ PySTEntry_New(struct symtable *, identifier, _Py_block_ty, void *, int);
PyAPI_FUNC(int) PyST_GetScope(PySTEntryObject *, PyObject *);
PyAPI_FUNC(struct symtable *) PySymtable_Build(mod_ty, const char *,