]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Make some internal functions static
authorNeal Norwitz <nnorwitz@gmail.com>
Mon, 27 Aug 2007 06:19:22 +0000 (06:19 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Mon, 27 Aug 2007 06:19:22 +0000 (06:19 +0000)
Objects/bytesobject.c
Python/pythonrun.c

index 24b86957b36bf0aed26c189e2e1b27e8d39ef535..182cbfca61110cecc7f06746e17c56913ce9c225 100644 (file)
@@ -75,7 +75,7 @@ bytes_releasebuffer(PyBytesObject *obj, PyBuffer *view)
         obj->ob_exports--;
 }
 
-Py_ssize_t
+static Py_ssize_t
 _getbuffer(PyObject *obj, PyBuffer *view)
 {
     PyBufferProcs *buffer = Py_Type(obj)->tp_as_buffer;
@@ -2534,7 +2534,7 @@ bytes_remove(PyBytesObject *self, PyObject *arg)
 
 /* XXX These two helpers could be optimized if argsize == 1 */
 
-Py_ssize_t
+static Py_ssize_t
 lstrip_helper(unsigned char *myptr, Py_ssize_t mysize,
               void *argptr, Py_ssize_t argsize)
 {
@@ -2544,7 +2544,7 @@ lstrip_helper(unsigned char *myptr, Py_ssize_t mysize,
     return i;
 }
 
-Py_ssize_t
+static Py_ssize_t
 rstrip_helper(unsigned char *myptr, Py_ssize_t mysize,
               void *argptr, Py_ssize_t argsize)
 {
index 542fe3859d1855e02ff5df75b30b50a70f5da731..a0019c4c4b34451393c12a07e49d3179c9cd5a66 100644 (file)
@@ -295,7 +295,7 @@ extern void dump_counts(FILE*);
 
 /* Flush stdout and stderr */
 
-void
+static void
 flush_std_files(void)
 {
        PyObject *fout = PySys_GetObject("stdout");