summaryrefslogtreecommitdiffstats
path: root/Modules/_testbuffer.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-07-07 18:37:54 (GMT)
committerGitHub <noreply@github.com>2018-07-07 18:37:54 (GMT)
commitc34e4e987b2eb222d87da33b324881baf01accee (patch)
treec2aee8213c779a27924a3bde825fbab6988f1dfa /Modules/_testbuffer.c
parent75f2eb5eca38d22da62eb5814b9614792cfce13c (diff)
downloadcpython-c34e4e987b2eb222d87da33b324881baf01accee.zip
cpython-c34e4e987b2eb222d87da33b324881baf01accee.tar.gz
cpython-c34e4e987b2eb222d87da33b324881baf01accee.tar.bz2
Make various internal _testbuffer symbols static. (GH-8160)
(cherry picked from commit 6cfe45a5c3d41c08d09f319ea68065b10200b13f) Co-authored-by: Benjamin Peterson <benjamin@python.org>
Diffstat (limited to 'Modules/_testbuffer.c')
-rw-r--r--Modules/_testbuffer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_testbuffer.c b/Modules/_testbuffer.c
index 6b8ab34..669794d 100644
--- a/Modules/_testbuffer.c
+++ b/Modules/_testbuffer.c
@@ -8,13 +8,13 @@
/* struct module */
-PyObject *structmodule = NULL;
-PyObject *Struct = NULL;
-PyObject *calcsize = NULL;
+static PyObject *structmodule = NULL;
+static PyObject *Struct = NULL;
+static PyObject *calcsize = NULL;
/* cache simple format string */
static const char *simple_fmt = "B";
-PyObject *simple_format = NULL;
+static PyObject *simple_format = NULL;
#define SIMPLE_FORMAT(fmt) (fmt == NULL || strcmp(fmt, "B") == 0)
#define FIX_FORMAT(fmt) (fmt == NULL ? "B" : fmt)