[Python-checkins] Make various internal _testbuffer symbols static. (GH-8160)

Benjamin Peterson webhook-mailer at python.org
Sat Jul 7 14:18:42 EDT 2018


https://github.com/python/cpython/commit/6cfe45a5c3d41c08d09f319ea68065b10200b13f
commit: 6cfe45a5c3d41c08d09f319ea68065b10200b13f
branch: master
author: Benjamin Peterson <benjamin at python.org>
committer: GitHub <noreply at github.com>
date: 2018-07-07T11:18:38-07:00
summary:

Make various internal _testbuffer symbols static. (GH-8160)

files:
M Modules/_testbuffer.c

diff --git a/Modules/_testbuffer.c b/Modules/_testbuffer.c
index 221543dcdd7c..344d06d0525d 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)
 



More information about the Python-checkins mailing list