From: Neal Norwitz Date: Sun, 10 Nov 2002 14:33:26 +0000 (+0000) Subject: Make private functions static so we don't pollute the namespace X-Git-Tag: v2.3c1~3487 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=addfe0c09c34ca70da404744d09334e2e6281ae2;p=python Make private functions static so we don't pollute the namespace --- diff --git a/Modules/_sre.c b/Modules/_sre.c index 0357764c05..640f388bdc 100644 --- a/Modules/_sre.c +++ b/Modules/_sre.c @@ -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( diff --git a/Python/ceval.c b/Python/ceval.c index e654efd462..b19121ce6d 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -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)