110 Commits (0555ada277c5cf84f4dd5dd2dd99b17f101dca78)

Author SHA1 Message Date
Paul Sokolovsky 674e069ba9 py/objarray: bytearray: Allow 2nd/3rd arg to constructor. 6 years ago
Damien George a785a3dbfb py/objarray: Allow to build again when bytearray is disabled. 6 years ago
Damien George c00ee200ac py/objarray: Replace 0x80 with new MP_OBJ_ARRAY_TYPECODE_FLAG_RW macro. 6 years ago
Damien George 5e34a113ea py/runtime: Add MP_BINARY_OP_CONTAINS as reverse of MP_BINARY_OP_IN. 7 years ago
Damien George f4059dcc0c all: Use NULL instead of "" when calling mp_raise exception helpers. 7 years ago
Damien George a3dc1b1957 all: Remove inclusion of internal py header files. 7 years ago
Damien George 58321dd985 all: Convert mp_uint_t to mp_unary_op_t/mp_binary_op_t where appropriate 7 years ago
Javier Candeira 35a1fea90b all: Raise exceptions via mp_raise_XXX 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Damien George 94c41bb06f py: Use mp_raise_TypeError/mp_raise_ValueError helpers where possible. 8 years ago
Damien George ab5689bc9d py/objarray: Use mp_obj_str_get_str instead of mp_obj_str_get_data. 8 years ago
Damien George c88cfe165b py: Use size_t as len argument and return type of mp_get_index. 8 years ago
Damien George f4a12dca58 py/objarray: Disallow slice-assignment to read-only memoryview. 8 years ago
Damien George e6003f466e py: De-optimise some uses of mp_getiter, so they don't use the C stack. 8 years ago
Damien George ae8d867586 py: Add iter_buf to getiter type method. 9 years ago
Damien George ccc5254224 py/objarray: Convert mp_uint_t to size_t where appropriate. 8 years ago
Paul Sokolovsky af90461931 py/binary: mp_binary_get_size: Raise error on unsupported typecodes. 8 years ago
Damien George 7d0d7215d2 py: Use mp_raise_msg helper function where appropriate. 8 years ago
Paul Sokolovsky ec7fe92531 py/objarray: Split out header to allow direct access to object. 8 years ago
Damien George 04d5e644fc py/objarray: Fix array.append so it doesn't extend if append fails. 9 years ago
Damien George 77f85db41e py/objarray: Fix array slice assignment when array is reallocated. 9 years ago
Paul Sokolovsky c38809e26b py/objarray: Implement "in" operator for bytearray. 9 years ago
Damien George 5b3f0b7f39 py: Change first arg of type.make_new from mp_obj_t to mp_obj_type_t*. 9 years ago
Damien George a0c97814df py: Change type of .make_new and .call args: mp_uint_t becomes size_t. 9 years ago
Damien George 999cedb90f py: Wrap all obj-ptr conversions in MP_OBJ_TO_PTR/MP_OBJ_FROM_PTR. 9 years ago
Damien George cbf7674025 py: Add MP_ROM_* macros and mp_rom_* types and use them. 9 years ago
Paul Sokolovsky 1b586f3a73 py: Rename MP_BOOL() to mp_obj_new_bool() for consistency in naming. 9 years ago
Damien George 3a2171e406 py: Eliminate some cases which trigger unused parameter warnings. 9 years ago
Damien George 821b7f22fe py: Use mp_not_implemented consistently for not implemented features. 9 years ago
Delio Brignoli 6a388aaa7c py: reduce array slice assignment code size 10 years ago
Damien George 4915c2b871 py: Small code space optimisations for memoryview slice assigment. 9 years ago
Delio Brignoli 32aba40830 py: Implement memoryview slice assignment. 10 years ago
Damien George 035deae1c6 py/objarray.c: Allow to build with debugging and bytearray but no array. 9 years ago
Kaspar Schleiser f5dd6f7f37 py/binary: Make return type of mp_binary_get_size size_t instead of int. 10 years ago
Damien George 7f9d1d6ab9 py: Overhaul and simplify printf/pfenv mechanism. 10 years ago
Paul Sokolovsky 56beb01724 objarray: Support assignment of bytes to bytearray slice. 10 years ago
Damien George 2e2e404ff7 py: Allow to compile with extra warnings (sign-compare, unused-param). 10 years ago
Paul Sokolovsky cb0fc063ed objmemoryview: Introduce mp_obj_new_memoryview(). 10 years ago
Paul Sokolovsky 16b1f5e842 objarray: Fix typo in null TYPECODE_MASK. 10 years ago
Damien George d891452a73 py: Add MICROPY_MALLOC_USES_ALLOCATED_SIZE to allow simpler malloc API. 10 years ago
Paul Sokolovsky cefcbb22b2 objarray: Implement array slice assignment. 10 years ago
Damien George 4d77e1a034 py: Use m_{new,renew,del} consistently. 10 years ago
Damien George ff8dd3f486 py, unix: Allow to compile with -Wunused-parameter. 10 years ago
Paul Sokolovsky 343ca1e63a objarray: Make sure that longint works as bytearray size. 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Damien George 32ef3a3517 py: Allow bytes/bytearray/array to be init'd by buffer protocol objects. 10 years ago
Damien George c7ca01ad96 py: Generalise and reduce code size of array +, += and .extend(). 10 years ago
Damien George b2e731177e py: Implement +, += and .extend for bytearray and array objs. 10 years ago
stijn 49c47da804 Fix errors after enabling -Wpointer-arith 10 years ago
Damien George de3c806965 py: Fix memoryview referencing so it retains ptr to original buffer. 10 years ago