Commit graph

19 commits

Author SHA1 Message Date
Folkert
3fe0140c7e clip clip clip 2020-11-05 00:59:26 +01:00
Richard Feldman
251e379271 Add alloca helper to roc_std 2020-11-01 23:24:53 -05:00
Folkert
5897a07962 use RocCallResult and pass-by-reference in all examples 2020-11-01 15:00:11 +01:00
Pit Capitain
aa56e4d0e2 Implement From<&str> for RocStr
Makes it easier to use in Tests...
2020-10-29 16:26:16 +01:00
Brendan Hansknecht
af4c0348c6 Assign length when creating small str 2020-10-12 19:19:03 -07:00
Brendan Hansknecht
4e0f591f8e
Use full RocStr capacity when making small str
Co-authored-by: Richard Feldman <oss@rtfeldman.com>
2020-10-12 21:45:39 -04:00
Brendan Hansknecht
641a183c26 Misc RocStr fixes
Add get_small_str_ptr_mut.
Simply debug message.
Just use slices in PartialEq for simplicity.
2020-10-12 16:59:55 -07:00
Brendan Hansknecht
af02e8e359 Fix from_slice_with_capacity to retrun small str 2020-10-12 16:54:33 -07:00
Brendan Hansknecht
77b26c3193 Add RocStr and convert HelloWord example to use it 2020-10-12 16:51:09 -07:00
Brendan Hansknecht
97c23557c7 Fix RocList memory leak
Also, reduces the number of elements in the quicksort example to make it
run better with valgrind.
2020-10-11 19:00:35 -07:00
Richard Feldman
95734c10c4 Move memory location of doubleword storage values 2020-09-30 19:36:25 -04:00
Folkert
ed3e1ad356 fix unreported clippy warnings 2020-09-30 22:50:38 +02:00
Folkert
7ea268a5d1 remove unused import 2020-09-30 22:29:16 +02:00
Folkert
a9329b250d final touchups 2020-09-30 22:20:58 +02:00
Folkert
0a2e7be885 clean up unused test module 2020-09-30 22:18:25 +02:00
Folkert
d46fb7bfb6 fix bool tests 2020-09-30 21:49:33 +02:00
Folkert
f3b317cab6 free RocList elements when refcount=1 2020-09-30 16:05:44 +02:00
Folkert
3d46d19585 round up malloc, but only sometimes 2020-09-30 15:57:53 +02:00
Folkert
95dffad073 WIP 2020-09-30 15:01:24 +02:00