diff options
author | Damien George <damien.p.george@gmail.com> | 2014-12-10 22:07:04 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-12-10 22:08:14 +0000 |
commit | 969a6b37bfc655609e540053c2bdcce8a6fdc64d (patch) | |
tree | 5e7d74f72d702efd07ff6ba6d93d3a10e4e00fd2 /unix/file.c | |
parent | d51107927d53a80835195ba1ac97048c203f05f2 (diff) |
py: Make functions static where appropriate.
Diffstat (limited to 'unix/file.c')
-rw-r--r-- | unix/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/file.c b/unix/file.c index 4a11d24bd..02b8aff18 100644 --- a/unix/file.c +++ b/unix/file.c @@ -49,7 +49,7 @@ typedef struct _mp_obj_fdfile_t { } mp_obj_fdfile_t; #ifdef MICROPY_CPYTHON_COMPAT -void check_fd_is_open(const mp_obj_fdfile_t *o) { +STATIC void check_fd_is_open(const mp_obj_fdfile_t *o) { if (o->fd < 0) { nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, "I/O operation on closed file")); } @@ -123,7 +123,7 @@ STATIC mp_obj_t fdfile_close(mp_obj_t self_in) { } STATIC MP_DEFINE_CONST_FUN_OBJ_1(fdfile_close_obj, fdfile_close); -mp_obj_t fdfile___exit__(mp_uint_t n_args, const mp_obj_t *args) { +STATIC mp_obj_t fdfile___exit__(mp_uint_t n_args, const mp_obj_t *args) { return fdfile_close(args[0]); } STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(fdfile___exit___obj, 4, 4, fdfile___exit__); |