contrib/python-zstandard/c-ext/compressionchunker.c
changeset 46374 e92ca942ddca
parent 42070 675775c33ab6
equal deleted inserted replaced
46373:711ba0f1057e 46374:e92ca942ddca
   346 	0,                                  /* tp_alloc */
   346 	0,                                  /* tp_alloc */
   347 	PyType_GenericNew,                  /* tp_new */
   347 	PyType_GenericNew,                  /* tp_new */
   348 };
   348 };
   349 
   349 
   350 void compressionchunker_module_init(PyObject* module) {
   350 void compressionchunker_module_init(PyObject* module) {
   351 	Py_TYPE(&ZstdCompressionChunkerIteratorType) = &PyType_Type;
   351 	Py_SET_TYPE(&ZstdCompressionChunkerIteratorType, &PyType_Type);
   352 	if (PyType_Ready(&ZstdCompressionChunkerIteratorType) < 0) {
   352 	if (PyType_Ready(&ZstdCompressionChunkerIteratorType) < 0) {
   353 		return;
   353 		return;
   354 	}
   354 	}
   355 
   355 
   356 	Py_TYPE(&ZstdCompressionChunkerType) = &PyType_Type;
   356 	Py_SET_TYPE(&ZstdCompressionChunkerType, &PyType_Type);
   357 	if (PyType_Ready(&ZstdCompressionChunkerType) < 0) {
   357 	if (PyType_Ready(&ZstdCompressionChunkerType) < 0) {
   358 		return;
   358 		return;
   359 	}
   359 	}
   360 }
   360 }