Make private functions static so we don't pollute the namespace

This commit is contained in:
Neal Norwitz 2002-11-10 14:33:26 +00:00
parent 3ae84b6389
commit addfe0c09c
2 changed files with 3 additions and 2 deletions

View File

@ -353,7 +353,8 @@ mark_restore(SRE_STATE* state, int lo, int hi)
return 0; return 0;
} }
void lastmark_restore(SRE_STATE *state, int lastmark) static void
lastmark_restore(SRE_STATE *state, int lastmark)
{ {
if (state->lastmark > lastmark) { if (state->lastmark > lastmark) {
memset( memset(

View File

@ -3197,7 +3197,7 @@ PyEval_GetFuncDesc(PyObject *func)
#define EXT_POP(STACK_POINTER) (*--(STACK_POINTER)) #define EXT_POP(STACK_POINTER) (*--(STACK_POINTER))
void static void
err_args(PyObject *func, int flags, int nargs) err_args(PyObject *func, int flags, int nargs)
{ {
if (flags & METH_NOARGS) if (flags & METH_NOARGS)