diff options
| author | Paul Sokolovsky | 2014-02-12 18:31:30 +0200 |
|---|---|---|
| committer | Paul Sokolovsky | 2014-02-12 18:31:30 +0200 |
| commit | 520e2f58a559c356ea540a5da4e9a585649aecc6 (patch) | |
| tree | 864ecd62ad09ab6c1af200a52b7227f8cfdeb6b6 /py/stream.c | |
| parent | d5df6cd44a433d6253a61cb0f987835fbc06b2de (diff) | |
Replace global "static" -> "STATIC", to allow "analysis builds". Part 2.
Diffstat (limited to 'py/stream.c')
| -rw-r--r-- | py/stream.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/py/stream.c b/py/stream.c index 10c7d88c0..f3487cc6e 100644 --- a/py/stream.c +++ b/py/stream.c @@ -10,9 +10,9 @@ // This file defines generic Python stream read/write methods which // dispatch to the underlying stream interface of an object. -static mp_obj_t stream_readall(mp_obj_t self_in); +STATIC mp_obj_t stream_readall(mp_obj_t self_in); -static mp_obj_t stream_read(uint n_args, const mp_obj_t *args) { +STATIC mp_obj_t stream_read(uint n_args, const mp_obj_t *args) { struct _mp_obj_base_t *o = (struct _mp_obj_base_t *)args[0]; if (o->type->stream_p.read == NULL) { // CPython: io.UnsupportedOperation, OSError subclass @@ -35,7 +35,7 @@ static mp_obj_t stream_read(uint n_args, const mp_obj_t *args) { } } -static mp_obj_t stream_write(mp_obj_t self_in, mp_obj_t arg) { +STATIC mp_obj_t stream_write(mp_obj_t self_in, mp_obj_t arg) { struct _mp_obj_base_t *o = (struct _mp_obj_base_t *)self_in; if (o->type->stream_p.write == NULL) { // CPython: io.UnsupportedOperation, OSError subclass @@ -58,7 +58,7 @@ static mp_obj_t stream_write(mp_obj_t self_in, mp_obj_t arg) { // TODO: should be in mpconfig.h #define READ_SIZE 256 -static mp_obj_t stream_readall(mp_obj_t self_in) { +STATIC mp_obj_t stream_readall(mp_obj_t self_in) { struct _mp_obj_base_t *o = (struct _mp_obj_base_t *)self_in; if (o->type->stream_p.read == NULL) { // CPython: io.UnsupportedOperation, OSError subclass @@ -99,7 +99,7 @@ static mp_obj_t stream_readall(mp_obj_t self_in) { } // Unbuffered, inefficient implementation of readline() for raw I/O files. -static mp_obj_t stream_unbuffered_readline(uint n_args, const mp_obj_t *args) { +STATIC mp_obj_t stream_unbuffered_readline(uint n_args, const mp_obj_t *args) { struct _mp_obj_base_t *o = (struct _mp_obj_base_t *)args[0]; if (o->type->stream_p.read == NULL) { // CPython: io.UnsupportedOperation, OSError subclass |
