79 Commits (ca2b1d6b36b11706b537eba90144469ba28561d2)

Author SHA1 Message Date
Damien George 43d08d6dd6 py/misc.h: Add MP_STATIC_ASSERT macro to do static assertions. 7 years ago
Damien George d4b55eff44 py/misc.h: Remove unused count_lead_ones() inline function. 7 years ago
Damien George 19aee9438a py/unicode: Clean up utf8 funcs and provide non-utf8 inline versions. 7 years ago
Paul Sokolovsky 75d3c046da py/misc.h: Add m_new_obj_var_with_finaliser(). 7 years ago
Damien George ca21aed0a1 py: Make m_malloc_fail() have void return type, since it doesn't return. 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Alexander Steffen 299bc62586 all: Unify header guard usage. 7 years ago
Damien George 2138258fea py/runtime: Mark m_malloc_fail() as NORETURN. 7 years ago
Ville Skyttä ca16c38210 various: Spelling fixes 8 years ago
Paul Sokolovsky 25f44c19f1 cc3200: Re-add support for UART REPL (MICROPY_STDIO_UART setting). 8 years ago
Paul Sokolovsky cf96be60dc py/misc.h: Typo fix in comment. 8 years ago
Damien George 824f5c5a32 py/vstr: Combine vstr_new_size with vstr_new since they are rarely used. 8 years ago
Damien George 5da0d29d3c py/vstr: Remove vstr.had_error flag and inline basic vstr functions. 8 years ago
Alex March 69d9e7d27d py/repl: Check for an identifier char after the keyword. 9 years ago
Paul Sokolovsky 946f870e3c py/misc.h: Include stdint.h only once (unconditionally at the top). 9 years ago
Paul Sokolovsky 9f001b09a8 py/misc.h: Include stdint.h, as large share of code now depends on it. 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 ade9a05236 py: Improve allocation policy of qstr data. 10 years ago
Dave Hylands 3ad94d6072 extmod: Add ubinascii.unhexlify 10 years ago
Damien George 7f9d1d6ab9 py: Overhaul and simplify printf/pfenv mechanism. 10 years ago
Damien George d891452a73 py: Add MICROPY_MALLOC_USES_ALLOCATED_SIZE to allow simpler malloc API. 10 years ago
Damien George 827b0f747b py: Change vstr_null_terminate -> vstr_null_terminated_str, returns str. 10 years ago
Damien George 0d3cb6726d py: Change vstr so that it doesn't null terminate buffer by default. 10 years ago
Damien George 16677ce311 py: Be more precise about unicode type and disabled unicode behaviour. 10 years ago
David Steinberg c585ad1020 py: Move mp_float_t related defines to misc.h 10 years ago
Damien George 05005f679e py: Remove mp_obj_str_builder and use vstr instead. 10 years ago
Damien George 0b9ee86133 py: Add mp_obj_new_str_from_vstr, and use it where relevant. 10 years ago
Damien George 9ddbe291c4 py: Add include guards to mpconfig,misc,qstr,obj,runtime,parsehelper. 10 years ago
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