Skip to content

Commit 4236421

Browse files
committed
Make keywords and format static
1 parent 72091fe commit 4236421

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/isal/isal_zlibmodule.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ PyDoc_STRVAR(zlib_compress__doc__,
236236
static PyObject *
237237
isal_zlib_compress(PyObject *module, PyObject *args, PyObject *kwargs)
238238
{
239-
char *keywords[] = {"", "level", "wbits", NULL};
240-
char *format ="y*|ii:isal_zlib.compress";
239+
static char *keywords[] = {"", "level", "wbits", NULL};
240+
static char *format ="y*|ii:isal_zlib.compress";
241241
Py_buffer data = {NULL, NULL};
242242
int level = ISAL_DEFAULT_COMPRESSION;
243243
int wbits = ISAL_DEF_MAX_HIST_BITS;
@@ -281,8 +281,8 @@ static PyObject *
281281
isal_zlib_decompress(PyObject *module, PyObject *args, PyObject *kwargs)
282282
{
283283
PyObject *return_value = NULL;
284-
char *keywords[] = {"", "wbits", "bufsize", NULL};
285-
char *format ="y*|in:isal_zlib.decompress";
284+
static char *keywords[] = {"", "wbits", "bufsize", NULL};
285+
static char *format ="y*|in:isal_zlib.decompress";
286286
Py_buffer data = {NULL, NULL};
287287
int wbits = ISAL_DEF_MAX_HIST_BITS;
288288
Py_ssize_t bufsize = DEF_BUF_SIZE;
@@ -870,8 +870,8 @@ static PyObject *
870870
isal_zlib_compressobj(PyObject *module, PyObject *args, PyObject *kwargs)
871871
{
872872
PyObject *return_value = NULL;
873-
char *keywords[] = {"level", "method", "wbits", "memLevel", "strategy", "zdict", NULL};
874-
char *format = "|iiiiiy*:compressobj";
873+
static char *keywords[] = {"level", "method", "wbits", "memLevel", "strategy", "zdict", NULL};
874+
static char *format = "|iiiiiy*:compressobj";
875875
int level = ISAL_DEFAULT_COMPRESSION;
876876
int method = Z_DEFLATED;
877877
int wbits = ISAL_DEF_MAX_HIST_BITS;
@@ -907,8 +907,8 @@ PyDoc_STRVAR(isal_zlib_decompressobj__doc__,
907907
static PyObject *
908908
isal_zlib_decompressobj(PyObject *module, PyObject *args, PyObject *kwargs)
909909
{
910-
char *keywords[] = {"wbits", "zdict", NULL};
911-
char *format = "|iO:decompressobj";
910+
static char *keywords[] = {"wbits", "zdict", NULL};
911+
static char *format = "|iO:decompressobj";
912912
int wbits = ISAL_DEF_MAX_HIST_BITS;
913913
PyObject *zdict = NULL;
914914

@@ -973,8 +973,8 @@ PyDoc_STRVAR(isal_zlib_Decompress_decompress__doc__,
973973
static PyObject *
974974
isal_zlib_Decompress_decompress(decompobject *self, PyObject *args, PyObject *kwargs)
975975
{
976-
char *keywords[] = {"", "max_length", NULL};
977-
char *format = "y*|n:decompress";
976+
static char *keywords[] = {"", "max_length", NULL};
977+
static char *format = "y*|n:decompress";
978978

979979
Py_buffer data = {NULL, NULL};
980980
Py_ssize_t max_length = 0;

0 commit comments

Comments
 (0)