aboutsummaryrefslogtreecommitdiff
path: root/py/vstr.c
AgeCommit message (Collapse)Author
2014-03-31py: Fix vstr_init for case that alloc = 0.Damien George
2014-03-17py: Clean up includes.xbe
Remove unnecessary includes. Add includes that improve portability.
2014-03-15py: Fix bug in vstr_ins_blank_bytes.Damien George
2014-03-15Add vstr_ins and vstr_cut_out; improve stmhal readline.Damien George
2014-02-12Replace global "static" -> "STATIC", to allow "analysis builds". Part 2.Paul Sokolovsky
2014-02-06Implement fixed buffer vstrs; use them for import path.Damien George
2014-01-22Fix 1 warning and 1 bug.Damien George
2014-01-13Add "buffer management" and "shrink" API calls to vstr.Paul Sokolovsky
vstr is initially intended to deal with arbitrary-length strings. By providing a bit lower-level API calls, it will be also useful to deal with arbitrary-length I/O buffers (the difference from strings is that buffers are filled from "outside", via I/O). Another issue, especially aggravated by I/O buffer use, is alloc size vs actual size length. If allocated 1Mb for buffer, but actually read 1 byte, we don't want to keep rest of 1Mb be locked by this I/O result, but rather return it to heap ASAP ("shrink" buffer before passing it to qstr_from_str_take()).
2014-01-03Basic implementation of import.Damien George
import works for simple cases. Still work to do on finding the right script, and setting globals/locals correctly when running an imported function.
2013-12-29Change memory allocation API to require size for free and realloc.Damien
2013-11-03Add simple var-arg functions; add simple string.format.Damien
2013-10-23Fix func decls with no arguments: () -> (void).Damien
2013-10-20Add vstr and its functions.Damien