[Python-checkins] Make two PyModuleDef_Slot symbols static in _testmultiphase. (GH-8147)

Miss Islington (bot) webhook-mailer at python.org
Sat Jul 7 00:32:59 EDT 2018


https://github.com/python/cpython/commit/3ca69f81472a96a2ee132b4069a465c149022f11
commit: 3ca69f81472a96a2ee132b4069a465c149022f11
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018年07月06日T21:32:54-07:00
summary:
Make two PyModuleDef_Slot symbols static in _testmultiphase. (GH-8147)
(cherry picked from commit cb4bae72c965ce946e0fdb48db67c73afdcb5649)
Co-authored-by: Benjamin Peterson <benjamin at python.org>
files:
M Modules/_testmultiphase.c
diff --git a/Modules/_testmultiphase.c b/Modules/_testmultiphase.c
index 43f8034e8e9b..6b18859a4667 100644
--- a/Modules/_testmultiphase.c
+++ b/Modules/_testmultiphase.c
@@ -237,7 +237,7 @@ static int execfunc(PyObject *m)
 
 #define TEST_MODULE_DEF(name, slots, methods) TEST_MODULE_DEF_EX(name, slots, methods, 0, NULL)
 
-PyModuleDef_Slot main_slots[] = {
+static PyModuleDef_Slot main_slots[] = {
 {Py_mod_exec, execfunc},
 {0, NULL},
 };
@@ -487,7 +487,7 @@ createfunc_null(PyObject *spec, PyModuleDef *def)
 return NULL;
 }
 
-PyModuleDef_Slot slots_create_null[] = {
+static PyModuleDef_Slot slots_create_null[] = {
 {Py_mod_create, createfunc_null},
 {0, NULL},
 };


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /