38 Commits (ebf8332104c1c6fbd01b521a713e49d040c62920)

Author SHA1 Message Date
Paul Sokolovsky 016d9a40fe various: Add and update my copyright line based on git history. 6 years ago
Damien George ede8a0235b py/vstr: Raise a RuntimeError if fixed vstr buffer overflows. 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Tom Collins 145796f037 py,extmod: Some casts and minor refactors to quiet compiler warnings. 7 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
Paul Sokolovsky 6f34e138f1 py/vstr: Change allocation policy, +16 to requested size, instead of *2. 9 years ago
Paul Sokolovsky a1f2245a81 py/vstr: vstr_null_terminated_str(): Extend string by at most one byte. 9 years ago
Dave Hylands 9f76dcd682 py: Prevent many extra vstr allocations. 10 years ago
Damien George 1c9a499135 py/vstr.c: Allow vstr_printf to print correctly to a fixed buffer. 10 years ago
Damien George 7f9d1d6ab9 py: Overhaul and simplify printf/pfenv mechanism. 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 77089bebd4 py: Add comments for vstr_init and mp_obj_new_str. 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 963a5a3e82 py, unix: Allow to compile with -Wsign-compare. 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Damien George 969a6b37bf py: Make functions static where appropriate. 10 years ago
Damien George 42f3de924b py: Convert [u]int to mp_[u]int_t where appropriate. 10 years ago
Damien George b0261341d3 py: For malloc and vstr functions, use size_t exclusively for int type. 10 years ago
Paul Sokolovsky 165eb69b86 vstr: Restore bytestr compatibility. 11 years ago
Chris Angelico 2ba2299d28 lexer, vstr: Add unicode support. 11 years ago
Paul Sokolovsky 59c675a64c py: Include mpconfig.h before all other includes. 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Damien George 8cd72bdf92 py: Fix vstr_init for case that alloc = 0. 11 years ago
xbe efe3422394 py: Clean up includes. 11 years ago
Damien George ecd58aec08 py: Fix bug in vstr_ins_blank_bytes. 11 years ago
Damien George 280e7208d8 Add vstr_ins and vstr_cut_out; improve stmhal readline. 11 years ago
Paul Sokolovsky 520e2f58a5 Replace global "static" -> "STATIC", to allow "analysis builds". Part 2. 11 years ago
Damien George 354d15a964 Implement fixed buffer vstrs; use them for import path. 11 years ago
Damien George f64086f80f Fix 1 warning and 1 bug. 11 years ago
Paul Sokolovsky 5d2499c638 Add "buffer management" and "shrink" API calls to vstr. 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
Damien George 66028ab6dc Basic implementation of import. 11 years ago
Damien 732407f1bf Change memory allocation API to require size for free and realloc. 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