Skip to content

Commit 6cfe45a

Browse files
authored
Make various internal _testbuffer symbols static. (GH-8160)
1 parent 86bfed3 commit 6cfe45a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Modules/_testbuffer.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88

99

1010
/* struct module */
11-
PyObject *structmodule = NULL;
12-
PyObject *Struct = NULL;
13-
PyObject *calcsize = NULL;
11+
static PyObject *structmodule = NULL;
12+
static PyObject *Struct = NULL;
13+
static PyObject *calcsize = NULL;
1414

1515
/* cache simple format string */
1616
static const char *simple_fmt = "B";
17-
PyObject *simple_format = NULL;
17+
static PyObject *simple_format = NULL;
1818
#define SIMPLE_FORMAT(fmt) (fmt == NULL || strcmp(fmt, "B") == 0)
1919
#define FIX_FORMAT(fmt) (fmt == NULL ? "B" : fmt)
2020

0 commit comments

Comments
 (0)