declare local functions as static (#5037)

Co-authored-by: Michiel Jan Laurens de Hoon <mdehoon@Michiels-MacBook-Air.local>
This commit is contained in:
mdehoon
2025-08-12 00:33:52 +09:00
committed by GitHub
parent 35bdb3f576
commit ff4bed01f5
2 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@
#include <math.h> #include <math.h>
#include <stdint.h> #include <stdint.h>
void static void
integer_unpack_u8(Py_buffer *in_view, Py_buffer *out_view) integer_unpack_u8(Py_buffer *in_view, Py_buffer *out_view)
{ {
Py_ssize_t in_size = in_view->shape[0]; Py_ssize_t in_size = in_view->shape[0];
@ -33,7 +33,7 @@ integer_unpack_u8(Py_buffer *in_view, Py_buffer *out_view)
} }
} }
void static void
integer_unpack_u16(Py_buffer *in_view, Py_buffer *out_view) integer_unpack_u16(Py_buffer *in_view, Py_buffer *out_view)
{ {
Py_ssize_t in_size = in_view->shape[0]; Py_ssize_t in_size = in_view->shape[0];
@ -63,7 +63,7 @@ integer_unpack_u16(Py_buffer *in_view, Py_buffer *out_view)
} }
} }
void static void
integer_unpack_i8(Py_buffer *in_view, Py_buffer *out_view) integer_unpack_i8(Py_buffer *in_view, Py_buffer *out_view)
{ {
Py_ssize_t in_size = in_view->shape[0]; Py_ssize_t in_size = in_view->shape[0];
@ -93,7 +93,7 @@ integer_unpack_i8(Py_buffer *in_view, Py_buffer *out_view)
} }
} }
void static void
integer_unpack_i16(Py_buffer *in_view, Py_buffer *out_view) integer_unpack_i16(Py_buffer *in_view, Py_buffer *out_view)
{ {
Py_ssize_t in_size = in_view->shape[0]; Py_ssize_t in_size = in_view->shape[0];

View File

@ -673,7 +673,7 @@ findPath(
} }
// Main Function // Main Function
PyObject * static PyObject *
PyCealign(PyObject *Py_UNUSED(self), PyObject *args) PyCealign(PyObject *Py_UNUSED(self), PyObject *args)
{ {
int fragmentSize = 8; int fragmentSize = 8;