1- #include " _delta_apply.h"
1+ #include < _delta_apply.h>
22#include <stdint.h>
33#include <assert.h>
44#include <stdio.h>
@@ -463,7 +463,7 @@ void DIV_reset(DeltaInfoVector* vec)
463463
464464// Append one chunk to the end of the list, and return a pointer to it
465465// It will not have been initialized !
466- static inline
466+ inline
467467DeltaInfo * DIV_append (DeltaInfoVector * vec )
468468{
469469 if (vec -> size + 1 > vec -> reserved_size ){
@@ -703,7 +703,7 @@ typedef struct {
703703} DeltaChunkList ;
704704
705705
706- static
706+
707707int DCL_init (DeltaChunkList * self , PyObject * args , PyObject * kwds )
708708{
709709 if (args && PySequence_Size (args ) > 0 ){
@@ -715,20 +715,20 @@ int DCL_init(DeltaChunkList*self, PyObject *args, PyObject *kwds)
715715 return 0 ;
716716}
717717
718- static
718+
719719void DCL_dealloc (DeltaChunkList * self )
720720{
721721 TSI_destroy (& (self -> istream ));
722722}
723723
724- static
724+
725725PyObject * DCL_py_rbound (DeltaChunkList * self )
726726{
727727 return PyLong_FromUnsignedLongLong (self -> istream .target_size );
728728}
729729
730730// Write using a write function, taking remaining bytes from a base buffer
731- static
731+
732732PyObject * DCL_apply (DeltaChunkList * self , PyObject * args )
733733{
734734 PyObject * pybuf = 0 ;
@@ -769,13 +769,13 @@ PyObject* DCL_apply(DeltaChunkList* self, PyObject* args)
769769 Py_RETURN_NONE ;
770770}
771771
772- static PyMethodDef DCL_methods [] = {
772+ PyMethodDef DCL_methods [] = {
773773 {"apply" , (PyCFunction )DCL_apply , METH_VARARGS , "Apply the given iterable of delta streams" },
774774 {"rbound" , (PyCFunction )DCL_py_rbound , METH_NOARGS , NULL },
775775 {NULL } /* Sentinel */
776776};
777777
778- static PyTypeObject DeltaChunkListType = {
778+ PyTypeObject DeltaChunkListType = {
779779 PyObject_HEAD_INIT (NULL )
780780 0 , /*ob_size*/
781781 "DeltaChunkList" , /*tp_name*/
@@ -897,7 +897,7 @@ uint compute_chunk_count(const uchar* data, const uchar* dend, bool read_header)
897897 return num_chunks ;
898898}
899899
900- static PyObject * connect_deltas (PyObject * self , PyObject * dstreams )
900+ PyObject * connect_deltas (PyObject * self , PyObject * dstreams )
901901{
902902 // obtain iterator
903903 PyObject * stream_iter = 0 ;
@@ -1088,7 +1088,6 @@ static PyObject* connect_deltas(PyObject *self, PyObject *dstreams)
10881088
10891089// Write using a write function, taking remaining bytes from a base buffer
10901090// replaces the corresponding method in python
1091- static
10921091PyObject * apply_delta (PyObject * self , PyObject * args )
10931092{
10941093 PyObject * pybbuf = 0 ;
0 commit comments