equal
deleted
inserted
replaced
398 0, /* tp_alloc */ |
398 0, /* tp_alloc */ |
399 PyType_GenericNew, /* tp_new */ |
399 PyType_GenericNew, /* tp_new */ |
400 }; |
400 }; |
401 |
401 |
402 void compressiondict_module_init(PyObject* mod) { |
402 void compressiondict_module_init(PyObject* mod) { |
403 Py_TYPE(&ZstdCompressionDictType) = &PyType_Type; |
403 Py_SET_TYPE(&ZstdCompressionDictType, &PyType_Type); |
404 if (PyType_Ready(&ZstdCompressionDictType) < 0) { |
404 if (PyType_Ready(&ZstdCompressionDictType) < 0) { |
405 return; |
405 return; |
406 } |
406 } |
407 |
407 |
408 Py_INCREF((PyObject*)&ZstdCompressionDictType); |
408 Py_INCREF((PyObject*)&ZstdCompressionDictType); |