@@ -276,7 +276,7 @@ _zstd_load_d_dict(ZstdDecompressor *self, PyObject *dict)
276276 output stream: ====================|
277277 ^
278278*/
279- PyObject *
279+ static PyObject *
280280decompress_impl (ZstdDecompressor * self , ZSTD_inBuffer * in ,
281281 Py_ssize_t max_length ,
282282 Py_ssize_t initial_size ,
@@ -374,7 +374,7 @@ decompress_impl(ZstdDecompressor *self, ZSTD_inBuffer *in,
374374 return NULL ;
375375}
376376
377- void
377+ static void
378378decompressor_reset_session (ZstdDecompressor * self ,
379379 decompress_type type )
380380{
@@ -399,7 +399,7 @@ decompressor_reset_session(ZstdDecompressor *self,
399399 ZSTD_DCtx_reset (self -> dctx , ZSTD_reset_session_only );
400400}
401401
402- PyObject *
402+ static PyObject *
403403stream_decompress (ZstdDecompressor * self , Py_buffer * data , Py_ssize_t max_length ,
404404 decompress_type type )
405405{
@@ -823,17 +823,14 @@ PyDoc_STRVAR(ZstdDecompressor_needs_input_doc,
823823static PyMemberDef ZstdDecompressor_members [] = {
824824 {"eof" , Py_T_BOOL , offsetof(ZstdDecompressor , eof ),
825825 Py_READONLY , ZstdDecompressor_eof_doc },
826-
827826 {"needs_input" , Py_T_BOOL , offsetof(ZstdDecompressor , needs_input ),
828827 Py_READONLY , ZstdDecompressor_needs_input_doc },
829-
830- {0 }
828+ {NULL }
831829};
832830
833831static PyGetSetDef ZstdDecompressor_getset [] = {
834832 _ZSTD_ZSTDDECOMPRESSOR_UNUSED_DATA_GETSETDEF
835-
836- {0 }
833+ {NULL }
837834};
838835
839836static int
@@ -863,7 +860,7 @@ static PyType_Slot ZstdDecompressor_slots[] = {
863860 {Py_tp_doc , (char * )_zstd_ZstdDecompressor___init____doc__ },
864861 {Py_tp_traverse , ZstdDecompressor_traverse },
865862 {Py_tp_clear , ZstdDecompressor_clear },
866- {0 }
863+ {0 , 0 }
867864};
868865
869866PyType_Spec zstd_decompressor_type_spec = {
0 commit comments