mirror of
https://github.com/python/cpython.git
synced 2025-09-06 17:02:26 +00:00
Merge ssize_t branch.
This commit is contained in:
parent
4482929734
commit
18e165558b
102 changed files with 2659 additions and 1677 deletions
|
@ -426,7 +426,8 @@ static int
|
|||
analyze_cells(PyObject *scope, PyObject *free)
|
||||
{
|
||||
PyObject *name, *v, *w;
|
||||
int pos = 0, success = 0;
|
||||
int success = 0;
|
||||
Py_ssize_t pos = 0;
|
||||
|
||||
w = PyInt_FromLong(CELL);
|
||||
if (!w)
|
||||
|
@ -507,7 +508,7 @@ update_symbols(PyObject *symbols, PyObject *scope,
|
|||
PyObject *bound, PyObject *free, int class)
|
||||
{
|
||||
PyObject *name, *v, *u, *w, *free_value = NULL;
|
||||
int pos = 0;
|
||||
Py_ssize_t pos = 0;
|
||||
|
||||
while (PyDict_Next(symbols, &pos, &name, &v)) {
|
||||
long i, flags;
|
||||
|
@ -583,7 +584,8 @@ analyze_block(PySTEntryObject *ste, PyObject *bound, PyObject *free,
|
|||
{
|
||||
PyObject *name, *v, *local = NULL, *scope = NULL, *newbound = NULL;
|
||||
PyObject *newglobal = NULL, *newfree = NULL;
|
||||
int i, pos = 0, success = 0;
|
||||
int i, success = 0;
|
||||
Py_ssize_t pos = 0;
|
||||
|
||||
local = PyDict_New();
|
||||
if (!local)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue