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/modffi.c | |
parent | d51107927d53a80835195ba1ac97048c203f05f2 (diff) |
py: Make functions static where appropriate.
Diffstat (limited to 'unix/modffi.c')
-rw-r--r-- | unix/modffi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unix/modffi.c b/unix/modffi.c index 6f8778929..b268bb364 100644 --- a/unix/modffi.c +++ b/unix/modffi.c @@ -300,7 +300,7 @@ STATIC void ffifunc_print(void (*print)(void *env, const char *fmt, ...), void * print(env, "<ffifunc %p>", self->func); } -mp_obj_t ffifunc_call(mp_obj_t self_in, mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args) { +STATIC mp_obj_t ffifunc_call(mp_obj_t self_in, mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args) { mp_obj_ffifunc_t *self = self_in; assert(n_kw == 0); assert(n_args == self->cif.nargs); @@ -416,12 +416,12 @@ STATIC const mp_obj_type_t opaque_type = { }; */ -mp_obj_t mod_ffi_open(mp_uint_t n_args, const mp_obj_t *args) { +STATIC mp_obj_t mod_ffi_open(mp_uint_t n_args, const mp_obj_t *args) { return ffimod_make_new((mp_obj_t)&ffimod_type, n_args, 0, args); } MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mod_ffi_open_obj, 1, 2, mod_ffi_open); -mp_obj_t mod_ffi_as_bytearray(mp_obj_t ptr, mp_obj_t size) { +STATIC mp_obj_t mod_ffi_as_bytearray(mp_obj_t ptr, mp_obj_t size) { return mp_obj_new_bytearray_by_ref(mp_obj_int_get_truncated(size), (void*)mp_obj_int_get_truncated(ptr)); } MP_DEFINE_CONST_FUN_OBJ_2(mod_ffi_as_bytearray_obj, mod_ffi_as_bytearray); |