diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-08-06 21:50:54 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-08-06 21:50:54 (GMT) |
commit | d8b995f5e896f49a907775ea64da0fda21a9fb1a (patch) | |
tree | 69575f0e09a845cd90324dcf42b1c9c370ea1b07 | |
parent | 22b1387c51a979a6921c18c6e3f7126d24b85e7c (diff) | |
download | cpython-d8b995f5e896f49a907775ea64da0fda21a9fb1a.zip cpython-d8b995f5e896f49a907775ea64da0fda21a9fb1a.tar.gz cpython-d8b995f5e896f49a907775ea64da0fda21a9fb1a.tar.bz2 |
Make readahead functions static
-rw-r--r-- | Objects/fileobject.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c index 726621a..56aff1c 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c @@ -271,7 +271,7 @@ err_closed(void) return NULL; } -void drop_readahead(PyFileObject *); +static void drop_readahead(PyFileObject *); /* Methods */ @@ -1608,7 +1608,7 @@ static PyGetSetDef file_getsetlist[] = { {0}, }; -void +static void drop_readahead(PyFileObject *f) { if (f->f_buf != NULL) { @@ -1620,7 +1620,9 @@ drop_readahead(PyFileObject *f) /* Make sure that file has a readahead buffer with at least one byte (unless at EOF) and no more than bufsize. Returns negative value on error */ -int readahead(PyFileObject *f, int bufsize) { +static int +readahead(PyFileObject *f, int bufsize) +{ int chunksize; if (f->f_buf != NULL) { @@ -1655,8 +1657,9 @@ int readahead(PyFileObject *f, int bufsize) { horrified by the recursive call: maximum recursion depth is limited by logarithmic buffer growth to about 50 even when reading a 1gb line. */ -PyStringObject * -readahead_get_line_skip(PyFileObject *f, int skip, int bufsize) { +static PyStringObject * +readahead_get_line_skip(PyFileObject *f, int skip, int bufsize) +{ PyStringObject* s; char *bufptr; char *buf; |