summaryrefslogtreecommitdiff
path: root/py/obj.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-12-10 22:37:07 +0000
committerDamien George <damien.p.george@gmail.com>2014-12-10 22:37:07 +0000
commit5318cc028aef9eb3edd88b01cd0e5b43c378fd83 (patch)
treecf8659c43c49dc646eaaabcfb9d1035b69df9972 /py/obj.h
parent7eb2317fa23d96ef5d312a28590543e6890d7a5b (diff)
py: Tidy up a few function declarations.
Diffstat (limited to 'py/obj.h')
-rw-r--r--py/obj.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/py/obj.h b/py/obj.h
index ea85542bd..c37c4d3fa 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -395,6 +395,8 @@ mp_obj_t mp_obj_new_int_from_ll(long long val); // this must return a multi-prec
mp_obj_t mp_obj_new_int_from_ull(unsigned long long val); // this must return a multi-precision integer object (or raise an overflow exception)
mp_obj_t mp_obj_new_str(const char* data, mp_uint_t len, bool make_qstr_if_not_already);
mp_obj_t mp_obj_new_bytes(const byte* data, mp_uint_t len);
+mp_obj_t mp_obj_new_bytearray(mp_uint_t n, void *items);
+mp_obj_t mp_obj_new_bytearray_by_ref(mp_uint_t n, void *items);
#if MICROPY_PY_BUILTINS_FLOAT
mp_obj_t mp_obj_new_float(mp_float_t val);
mp_obj_t mp_obj_new_complex(mp_float_t real, mp_float_t imag);
@@ -549,9 +551,6 @@ void mp_obj_set_store(mp_obj_t self_in, mp_obj_t item);
// slice
void mp_obj_slice_get(mp_obj_t self_in, mp_obj_t *start, mp_obj_t *stop, mp_obj_t *step);
-// array
-mp_obj_t mp_obj_new_bytearray_by_ref(mp_uint_t n, void *items);
-
// functions
#define MP_OBJ_FUN_ARGS_MAX (0xffff) // to set maximum value in n_args_max below
typedef struct _mp_obj_fun_builtin_t { // use this to make const objects that go in ROM