]> granicus.if.org Git - python/commitdiff
Make private functions static so we don't pollute the namespace
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 10 Nov 2002 14:33:26 +0000 (14:33 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 10 Nov 2002 14:33:26 +0000 (14:33 +0000)
Modules/_sre.c
Python/ceval.c

index 0357764c056e15e88953a5f87d96a94b744e36b2..640f388bdc98a8a06acd2c5393686d84a98db98c 100644 (file)
@@ -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(
index e654efd462c05d3961d056c323d377b6a9858aed..b19121ce6d7d68389c74c5d84ade8c316e404ad7 100644 (file)
@@ -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)