diff options
author | Benjamin Peterson <benjamin@python.org> | 2018-07-07 18:18:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-07 18:18:38 (GMT) |
commit | 6cfe45a5c3d41c08d09f319ea68065b10200b13f (patch) | |
tree | 56364e45b863a5a170ef7902d3a5f3baa789d48e /Modules | |
parent | 86bfed372b81b8111a56a3311d537566d5df7f61 (diff) | |
download | cpython-6cfe45a5c3d41c08d09f319ea68065b10200b13f.zip cpython-6cfe45a5c3d41c08d09f319ea68065b10200b13f.tar.gz cpython-6cfe45a5c3d41c08d09f319ea68065b10200b13f.tar.bz2 |
Make various internal _testbuffer symbols static. (GH-8160)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_testbuffer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_testbuffer.c b/Modules/_testbuffer.c index 221543d..344d06d 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) |