mirror of
https://github.com/python/cpython.git
synced 2024-11-25 02:44:06 +08:00
Make private functions static so we don't pollute the namespace
This commit is contained in:
parent
3ae84b6389
commit
addfe0c09c
@ -353,7 +353,8 @@ mark_restore(SRE_STATE* state, int lo, int hi)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void lastmark_restore(SRE_STATE *state, int lastmark)
|
||||
static void
|
||||
lastmark_restore(SRE_STATE *state, int lastmark)
|
||||
{
|
||||
if (state->lastmark > lastmark) {
|
||||
memset(
|
||||
|
@ -3197,7 +3197,7 @@ PyEval_GetFuncDesc(PyObject *func)
|
||||
|
||||
#define EXT_POP(STACK_POINTER) (*--(STACK_POINTER))
|
||||
|
||||
void
|
||||
static void
|
||||
err_args(PyObject *func, int flags, int nargs)
|
||||
{
|
||||
if (flags & METH_NOARGS)
|
||||
|
Loading…
Reference in New Issue
Block a user