mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Make some private symbols static.
This commit is contained in:
parent
f85af612f8
commit
f68d8e52e7
5 changed files with 8 additions and 7 deletions
|
@ -374,7 +374,8 @@ struct compiling {
|
|||
PyFutureFeatures *c_future; /* pointer to module's __future__ */
|
||||
};
|
||||
|
||||
int is_free(int v)
|
||||
static int
|
||||
is_free(int v)
|
||||
{
|
||||
if ((v & (USE | DEF_FREE))
|
||||
&& !(v & (DEF_LOCAL | DEF_PARAM | DEF_GLOBAL)))
|
||||
|
|
|
@ -420,7 +420,7 @@ SystemExit__init__(PyObject *self, PyObject *args)
|
|||
}
|
||||
|
||||
|
||||
PyMethodDef SystemExit_methods[] = {
|
||||
static PyMethodDef SystemExit_methods[] = {
|
||||
{ "__init__", SystemExit__init__, METH_VARARGS},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
@ -836,7 +836,7 @@ SyntaxError__str__(PyObject *self, PyObject *args)
|
|||
}
|
||||
|
||||
|
||||
PyMethodDef SyntaxError_methods[] = {
|
||||
static PyMethodDef SyntaxError_methods[] = {
|
||||
{"__init__", SyntaxError__init__, METH_VARARGS},
|
||||
{"__str__", SyntaxError__str__, METH_VARARGS},
|
||||
{NULL, NULL}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue