51 Commits (067ae1269d53b57506cfb86d0d450b4e12fa260a)

Author SHA1 Message Date
Damien George 9bf5f2857d py: Add further checks for failed malloc in lexer init functions. 10 years ago
bvernoux f6f248b464 Fix error: unknown type name 'size_t' 10 years ago
Damien George b0261341d3 py: For malloc and vstr functions, use size_t exclusively for int type. 10 years ago
Paul Sokolovsky 564e46452d py: Add generic helper to align a pointer. 10 years ago
Damien George 40f3c02682 Rename machine_(u)int_t to mp_(u)int_t. 11 years ago
Paul Sokolovsky 9e215fa4c2 py: Make unichar_charlen() accept/return machine_uint_t. 11 years ago
Damien George e04a44e2f6 py: Small comments, name changes, use of machine_int_t. 11 years ago
Paul Sokolovsky ce81312d8a misc: Add count_lead_ones() function, useful for UTF-8 handling. 11 years ago
Chris Angelico c88987c1af py: Implement basic unicode functions. 11 years ago
Emmanuel Blot f6932d6506 Prefix ARRAY_SIZE with micropython prefix MP_ 11 years ago
Paul Sokolovsky 7ddbd1bee7 unicode: Add trivial implementation of unichar_charlen(). 11 years ago
Paul Sokolovsky b0bb458810 unicode: String API is const byte*. 11 years ago
Kim Bauters a3f4b83018 add methods isspace(), isalpha(), isdigit(), isupper() and islower() to str 11 years ago
Paul Sokolovsky 6913521911 objstr: Implement .lower() and .upper(). 11 years ago
Damien George 1b82e9af5c py: Improve handling of memory error in parser. 11 years ago
Paul Sokolovsky 6b344d7816 py, unix: Add -v option, print bytecode dump if used. 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
Damien George 58ba4c3b4c py: Check explicitly for memory allocation failure in parser. 11 years ago
Damien George f0954e3fac py: Add emergency exception object for when heap allocation fails. 11 years ago
Damien George 12bab72d93 Improve GC finalisation code; add option to disable it. 11 years ago
Damien George 6902eeda25 py: Add m_malloc_fail function to handle memory allocation error. 11 years ago
mux 4f7e9f5c44 Implement del 11 years ago
Damien George 094d450003 py: Wrap compile_scope_inline_asm in #if; remove comment from misc.h. 11 years ago
Damien George 280e7208d8 Add vstr_ins and vstr_cut_out; improve stmhal readline. 11 years ago
Damien George 510477557d py: Take out bitfield entries from their own structure. 11 years ago
Damien George 2613ffde43 py: Rename strtonum to mp_strtonum. 11 years ago
Paul Sokolovsky 44739e280e Make DEBUG_printf() a proper function, implementation is port-dependent. 11 years ago
Damien George 354d15a964 Implement fixed buffer vstrs; use them for import path. 11 years ago
Damien George e09ffa1400 Search paths properly on import and execute __init__.py if it exists. 11 years ago
Paul Sokolovsky e11b17c25f Implement support for sys.path when loading modules. 11 years ago
Paul Sokolovsky 6e6b888e31 Add generic MIN()/MAX() functions. 11 years ago
Paul Sokolovsky 0b7184dcb8 Implement octal and hex escapes in strings. 11 years ago
Damien George 55baff4c9b Revamp qstrs: they now include length and hash. 11 years ago
Paul Sokolovsky 36c4499d36 Implement str() and repr() builtin functions. 11 years ago
Paul Sokolovsky 5d2499c638 Add "buffer management" and "shrink" API calls to vstr. 11 years ago
John R. Lenton 07205ec323 added zip() 11 years ago
John R. Lenton 9c83ec0eda Merge remote-tracking branch 'upstream/master' into dict_feats 11 years ago
ian-v 5fd8fd2c16 Revert MP_BOOL, etc. and use <stdbool.h> instead 11 years ago
ian-v 7a16fadbf8 Co-exist with C++ (issue #85) 11 years ago
Paul Sokolovsky 780f555b2e Add new alloc metric: peak_bytes_allocated. 11 years ago
Paul Sokolovsky 02de0c57d2 Add new alloc metric: current_bytes_allocated. 11 years ago
Damien George 8cc96a35e5 Put unicode functions in unicode.c, and tidy their names. 11 years ago
Damien 732407f1bf Change memory allocation API to require size for free and realloc. 11 years ago
Damien d99b05282d Change object representation from 1 big union to individual structs. 11 years ago
Damien 96a0addb18 Fixup include of stdarg and va_list definition. 11 years ago
Damien 2f06c57f8a Add simple var-arg functions; add simple string.format. 11 years ago
Damien 8b3a7c2237 Fix func decls with no arguments: () -> (void). 11 years ago
Damien 68f59a96e3 Add vstr and its functions. 11 years ago
Damien 429d71943d Initial commit. 11 years ago