Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit addfe0c

Browse files
committed
Make private functions static so we don't pollute the namespace
1 parent 3ae84b6 commit addfe0c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Modules/_sre.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,8 @@ mark_restore(SRE_STATE* state, int lo, int hi)
353353
return 0;
354354
}
355355

356-
void lastmark_restore(SRE_STATE *state, int lastmark)
356+
static void
357+
lastmark_restore(SRE_STATE *state, int lastmark)
357358
{
358359
if (state->lastmark > lastmark) {
359360
memset(

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3197,7 +3197,7 @@ PyEval_GetFuncDesc(PyObject *func)
31973197

31983198
#define EXT_POP(STACK_POINTER) (*--(STACK_POINTER))
31993199

3200-
void
3200+
static void
32013201
err_args(PyObject *func, int flags, int nargs)
32023202
{
32033203
if (flags & METH_NOARGS)

0 commit comments

Comments
 (0)