mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT.
This commit is contained in:
parent
99170a5dbf
commit
90aa7646af
144 changed files with 1306 additions and 1153 deletions
|
|
@ -153,7 +153,7 @@ w_object(PyObject *v, WFILE *p)
|
|||
PyLongObject *ob = (PyLongObject *)v;
|
||||
PyErr_Clear();
|
||||
w_byte(TYPE_LONG, p);
|
||||
n = Py_Size(ob);
|
||||
n = Py_SIZE(ob);
|
||||
w_long((long)n, p);
|
||||
if (n < 0)
|
||||
n = -n;
|
||||
|
|
@ -557,7 +557,7 @@ r_object(RFILE *p)
|
|||
retval = NULL;
|
||||
break;
|
||||
}
|
||||
Py_Size(ob) = n;
|
||||
Py_SIZE(ob) = n;
|
||||
for (i = 0; i < size; i++) {
|
||||
int digit = r_short(p);
|
||||
if (digit < 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue