Skip to content

Commit f2bc792

Browse files
committed
STY: use static storage
1 parent 39ca043 commit f2bc792

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

bottleneck/src/nonreduce_axis_template.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -393,13 +393,12 @@ NRA_MAIN(push, PARSE_PUSH)
393393

394394
/* python strings -------------------------------------------------------- */
395395

396-
PyObject *pystr_a = NULL;
397-
PyObject *pystr_n = NULL;
398-
PyObject *pystr_kth = NULL;
399-
PyObject *pystr_axis = NULL;
396+
static PyObject *pystr_a = NULL;
397+
static PyObject *pystr_n = NULL;
398+
static PyObject *pystr_kth = NULL;
399+
static PyObject *pystr_axis = NULL;
400400

401-
static int
402-
intern_strings(void) {
401+
static int intern_strings(void) {
403402
pystr_a = PyString_InternFromString("a");
404403
pystr_n = PyString_InternFromString("n");
405404
pystr_kth = PyString_InternFromString("kth");

0 commit comments

Comments
 (0)