Skip to content

Commit c14e332

Browse files
Make various internal _testbuffer symbols static. (pythonGH-8160)
(cherry picked from commit 6cfe45a) Co-authored-by: Benjamin Peterson <[email protected]>
1 parent cad4a27 commit c14e332

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)