Skip to content

Commit

Permalink
STY: use static storage
Browse files Browse the repository at this point in the history
  • Loading branch information
qwhelan committed Jan 24, 2021
1 parent 39ca043 commit f2bc792
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions bottleneck/src/nonreduce_axis_template.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,13 +393,12 @@ NRA_MAIN(push, PARSE_PUSH)

/* python strings -------------------------------------------------------- */

PyObject *pystr_a = NULL;
PyObject *pystr_n = NULL;
PyObject *pystr_kth = NULL;
PyObject *pystr_axis = NULL;
static PyObject *pystr_a = NULL;
static PyObject *pystr_n = NULL;
static PyObject *pystr_kth = NULL;
static PyObject *pystr_axis = NULL;

static int
intern_strings(void) {
static int intern_strings(void) {
pystr_a = PyString_InternFromString("a");
pystr_n = PyString_InternFromString("n");
pystr_kth = PyString_InternFromString("kth");
Expand Down

0 comments on commit f2bc792

Please sign in to comment.