mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48: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
|
@ -409,7 +409,7 @@ SHA256_copy(SHAobject *self, PyObject *unused)
|
|||
{
|
||||
SHAobject *newobj;
|
||||
|
||||
if (Py_Type(self) == &SHA256type) {
|
||||
if (Py_TYPE(self) == &SHA256type) {
|
||||
if ( (newobj = newSHA256object())==NULL)
|
||||
return NULL;
|
||||
} else {
|
||||
|
@ -687,10 +687,10 @@ init_sha256(void)
|
|||
{
|
||||
PyObject *m;
|
||||
|
||||
Py_Type(&SHA224type) = &PyType_Type;
|
||||
Py_TYPE(&SHA224type) = &PyType_Type;
|
||||
if (PyType_Ready(&SHA224type) < 0)
|
||||
return;
|
||||
Py_Type(&SHA256type) = &PyType_Type;
|
||||
Py_TYPE(&SHA256type) = &PyType_Type;
|
||||
if (PyType_Ready(&SHA256type) < 0)
|
||||
return;
|
||||
m = Py_InitModule("_sha256", SHA_functions);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue