diff Python/symtable.c @ 48253:9de68ad86078 legacy-trunk

PySTEntry's constructor is static; there's no point in a fancy API name
author Benjamin Peterson <benjamin@python.org>
date Sat, 16 Aug 2008 23:29:40 +0000
parents 2d76af7f7702
children 153e9e678646
line wrap: on
line diff
--- a/Python/symtable.c	Sat Aug 16 22:37:05 2008 +0000
+++ b/Python/symtable.c	Sat Aug 16 23:29:40 2008 +0000
@@ -16,9 +16,9 @@
 #define RETURN_VAL_IN_GENERATOR \
     "'return' with argument inside generator"
 
-/* XXX(nnorwitz): change name since static? */
+
 static PySTEntryObject *
-PySTEntry_New(struct symtable *st, identifier name, _Py_block_ty block,
+ste_new(struct symtable *st, identifier name, _Py_block_ty block,
 	      void *key, int lineno)
 {
 	PySTEntryObject *ste = NULL;
@@ -722,7 +722,7 @@
 	return 1;
 }
 
-/* symtable_enter_block() gets a reference via PySTEntry_New().
+/* symtable_enter_block() gets a reference via ste_new.
    This reference is released when the block is exited, via the DECREF
    in symtable_exit_block().
 */
@@ -759,7 +759,7 @@
 		}
 		Py_DECREF(st->st_cur);
 	}
-	st->st_cur = PySTEntry_New(st, name, block, ast, lineno);
+	st->st_cur = ste_new(st, name, block, ast, lineno);
 	if (st->st_cur == NULL)
 		return 0;
 	if (name == GET_IDENTIFIER(top))