46 Commits (3436223630751c770c04b2dca35ef0002143f033)

Author SHA1 Message Date
Damien George c348e79187 py/binary: Change mp_uint_t to size_t for index, size, align args. 5 years ago
Damien George 24c3e9b283 py/modstruct: Fix struct.pack_into with unaligned offset of native type. 5 years ago
Tom McDermott 1022f9cc35 py/modstruct: Fix struct.unpack with unaligned offset of native type. 5 years ago
Damien George 2daacc5cee py/modstruct: Check and prevent buffer-write overflow in struct packing. 7 years ago
Damien George 79d5acbd01 py/modstruct: Check and prevent buffer-read overflow in struct unpacking 7 years ago
Damien George 793d826d9d py/modstruct: In struct.pack, stop converting if there are no args left. 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Paul Sokolovsky af90461931 py/binary: mp_binary_get_size: Raise error on unsupported typecodes. 8 years ago
Damien George dffa383b06 py/modstruct: Remove unreachable code, and add comment about CPy diff. 8 years ago
Damien George 93c4a6a3f7 all: Remove 'name' member from mp_obj_module_t struct. 8 years ago
Damien George fe3cc5bb53 py/modstruct: Use more compact mp_raise_ValueError function. 8 years ago
Damien George 715ee9d925 py/modstruct: Allow to have "0s" in struct format. 9 years ago
Paul Sokolovsky e53fb1bf03 py/modstruct: Raise ValueError on unsupported format char. 9 years ago
Dave Hylands a17755ee8b py: Add ustruct.pack_into and unpack_from 9 years ago
Damien George 4b72b3a133 py: Change type signature of builtin funs that take variable or kw args. 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 2b080cf599 py/modstruct: Support repetition counters for all types, not just string. 9 years ago
Paul Sokolovsky 7e66b859b2 modstruct: Raise NotImplementedError for unsupported repeat specification. 9 years ago
Paul Sokolovsky 3d3ef36e97 modstruct: Rename module to "ustruct", to allow full Python-level impl. 10 years ago
Damien George 7d414a1b52 py: Parse big-int/float/imag constants directly in parser. 10 years ago
Damien George 05005f679e py: Remove mp_obj_str_builder and use vstr instead. 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Damien George 3b603f29ec Use MP_DEFINE_CONST_DICT macro to define module dicts. 10 years ago
Damien George 9336ee320a py: Make mp_binary_set_val work on big endian machine. 10 years ago
Damien George 42f3de924b py: Convert [u]int to mp_[u]int_t where appropriate. 10 years ago
Damien George 4abff7500f py: Change uint to mp_uint_t in runtime.h, stackctrl.h, binary.h. 10 years ago
Damien George 40f3c02682 Rename machine_(u)int_t to mp_(u)int_t. 11 years ago
Paul Sokolovsky 59c675a64c py: Include mpconfig.h before all other includes. 11 years ago
Emmanuel Blot f6932d6506 Prefix ARRAY_SIZE with micropython prefix MP_ 11 years ago
Paul Sokolovsky 62798831be modstruct: Add one more extension to typecodes - 'S', a pointer to C string. 11 years ago
Damien George ee3fd46f13 Rename configuration variables controling Python features. 11 years ago
Paul Sokolovsky 053765414c modstruct: struct_calcsize: Fix case of uninitialized var. 11 years ago
Paul Sokolovsky da9f0924ef py, unix: Add copyright for modules I worked closely on. 11 years ago
Paul Sokolovsky df94b717b4 modstruct: Implement count specifier for strings (e.g. "100s"). 11 years ago
Paul Sokolovsky 147c80bf7c modstruct: Use MP_OBJ_FUN_ARGS_MAX instead of -1. 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Damien George 6d3c5e4301 Add ARRAY_SIZE macro, and use it where possible. 11 years ago
Paul Sokolovsky 6204460461 modstruct: Initial implementation of struct.pack(). 11 years ago
Paul Sokolovsky 1355cf42f2 modstruct: Fix .calcsize() to account for struct type/alignment. 11 years ago
Damien George b11b85adaa py: Allow to pass buffer protocol flags to get_buffer helper funcs. 11 years ago
Damien George 57a4b4f178 py: Add typecode to buffer protocol. 11 years ago
Paul Sokolovsky 0c43cf9154 modstruct: Basic implementation of native struct alignment and types. 11 years ago
Paul Sokolovsky 6582d64d01 modstruct: Refactor to support both LE and BE packed structs. 11 years ago
Damien George bf8ae4d96e py: Fix modstruct to compile on 64-bit machine. 11 years ago
Paul Sokolovsky e9db840480 py: Start implementing "struct" module. 11 years ago