]> granicus.if.org Git - python/commitdiff
Make various internal _testbuffer symbols static. (GH-8160)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 7 Jul 2018 18:40:23 +0000 (11:40 -0700)
committerGitHub <noreply@github.com>
Sat, 7 Jul 2018 18:40:23 +0000 (11:40 -0700)
(cherry picked from commit 6cfe45a5c3d41c08d09f319ea68065b10200b13f)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
Modules/_testbuffer.c

index 6b8ab34d931cd3faa728e6821af2af9c7e76eb9a..669794df012c18fdb12dfac7fd21210566a11466 100644 (file)
@@ -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)