Make some internal functions static

This commit is contained in:
Neal Norwitz 2007-08-27 06:19:22 +00:00
parent 908c871eeb
commit 2bad970293
2 changed files with 4 additions and 4 deletions

View File

@ -75,7 +75,7 @@ bytes_releasebuffer(PyBytesObject *obj, PyBuffer *view)
obj->ob_exports--; obj->ob_exports--;
} }
Py_ssize_t static Py_ssize_t
_getbuffer(PyObject *obj, PyBuffer *view) _getbuffer(PyObject *obj, PyBuffer *view)
{ {
PyBufferProcs *buffer = Py_Type(obj)->tp_as_buffer; 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 */ /* 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, lstrip_helper(unsigned char *myptr, Py_ssize_t mysize,
void *argptr, Py_ssize_t argsize) void *argptr, Py_ssize_t argsize)
{ {
@ -2544,7 +2544,7 @@ lstrip_helper(unsigned char *myptr, Py_ssize_t mysize,
return i; return i;
} }
Py_ssize_t static Py_ssize_t
rstrip_helper(unsigned char *myptr, Py_ssize_t mysize, rstrip_helper(unsigned char *myptr, Py_ssize_t mysize,
void *argptr, Py_ssize_t argsize) void *argptr, Py_ssize_t argsize)
{ {

View File

@ -295,7 +295,7 @@ extern void dump_counts(FILE*);
/* Flush stdout and stderr */ /* Flush stdout and stderr */
void static void
flush_std_files(void) flush_std_files(void)
{ {
PyObject *fout = PySys_GetObject("stdout"); PyObject *fout = PySys_GetObject("stdout");