Commit Graph

103 Commits

Author SHA1 Message Date
Brendan Hansknecht
39d070e543 flip platform flag to be default 2022-02-25 20:10:36 -08:00
Brendan Hansknecht
4d8239ea5c add safety comments 2022-02-25 12:00:25 -08:00
Brendan Hansknecht
6968647cc5 update versions to lockfile 2022-02-25 11:41:05 -08:00
Brendan Hansknecht
7db365f4ee flip platform flag to fix it 2022-02-25 11:39:49 -08:00
Brendan Hansknecht
f59b5cab95 fix undefined symbols in roc_std with platform feature 2022-02-25 11:05:08 -08:00
Tom Dohrmann
788c8a6af2 reimplement RocList and RocStr 2022-02-23 16:02:13 +01:00
Folkert
808ab15f14
make small str creation a const fn 2022-02-19 21:01:37 +01:00
Folkert
e17d1a5517
refactor 2022-02-19 16:47:00 +01:00
Folkert
bb40adad3a
add memory representation tests 2022-02-19 16:04:13 +01:00
Folkert
701bf57192
improved small string creation 2022-02-19 15:33:28 +01:00
Folkert
b97cd894f0
make empty() const fn 2022-02-19 15:10:57 +01:00
Folkert
298fde7e42
split out RocStr 2022-02-18 23:44:36 +01:00
Folkert
d2086c58c2
split out list 2022-02-18 23:42:32 +01:00
Tom Dohrmann
5c0849ea82 fix referencing uninitialized memory 2022-02-15 22:58:29 +01:00
Brendan Hansknecht
1af80316d4 Fix mutability 2022-02-12 13:02:02 -08:00
Brendan Hansknecht
9bbda7ead0 Add Deref and DerefMut to RocList and RocStr
This enables things like implicitly using it as a slice and using `.iter()` instead of `into_iter()`
2022-02-12 12:57:53 -08:00
Richard Feldman
2b5a660178
Add Display to RocStr 2022-02-05 22:52:17 -05:00
Folkert
655022be78 fix string debug printing 2021-12-31 15:37:53 +01:00
Folkert
9762c98355 make RocStr debug print its contents as a string 2021-12-31 14:27:27 +01:00
Folkert
36700a0c70 shrink tag width on RocResult 2021-12-27 23:59:12 +01:00
Folkert
007d777865 flesh out api for RocResult 2021-12-27 20:01:19 +01:00
Folkert
c2934a509a refactor unsafe RocResult to payload conversion 2021-12-27 19:31:22 +01:00
Richard Feldman
f536eeb919 Add From<Result> to RocResult 2021-12-27 16:34:55 +01:00
Richard Feldman
c83a9b82e7 Fix RocResult double-free, add tests 2021-12-27 16:34:43 +01:00
Richard Feldman
d6fc4ac25f Make RocResult use unions under the hood 2021-12-27 16:34:36 +01:00
Brian Carroll
79dfbae618 roc_std: set small string flag on empty string 2021-12-16 19:04:36 +00:00
Brian Hicks
048d8bf87d remove unused printf import 2021-11-19 08:13:53 -06:00
Brendan Hansknecht
d21c858ccd fix clippy lint 2021-10-29 16:03:49 -07:00
Brendan Hansknecht
5d42fe4448 Fix comparison 2021-10-24 12:05:03 -07:00
Brendan Hansknecht
31f61d81f1 Add assert related to RocList capacity of 0 2021-10-24 12:04:19 -07:00
Brendan Hansknecht
af49d9bdb2 Avoid allocation for empty list 2021-10-24 11:56:53 -07:00
Folkert
e319d1e758 make roc main return values, instead of write them into pointer 2021-09-19 22:05:48 +02:00
Folkert
e569cab167 fix segfault in RocStr dropping an empty RocStr 2021-08-29 23:05:18 +02:00
Folkert
815a4f76a7 make more tests run under wasm 2021-08-29 15:18:25 +02:00
Richard Feldman
ffeaa1ac08
Merge branch 'trunk' into store-dec-as-str 2021-08-26 21:24:56 -04:00
Folkert
95b2b41468 set the refcount... 2021-08-27 00:02:08 +02:00
Jared Ramirez
4b2a63fb30 Merge branch 'trunk' of https://github.com/rtfeldman/roc into store-dec-as-str 2021-08-26 11:23:17 -07:00
Folkert
dd24786e67 implement into iterator 2021-08-20 20:45:21 +02:00
Folkert
fa49f0368d implement 2021-08-20 20:41:20 +02:00
Jared Ramirez
d69b9173fc Also store f64 for things like pattern comparisons, etc 2021-08-18 17:18:13 -07:00
Richard Feldman
ce8a495096 Remove unnecessary unsafe annotation 2021-08-03 07:28:03 -04:00
Richard Feldman
b0acf88803 Change write_c_str API 2021-08-03 07:28:03 -04:00
Richard Feldman
1c09450103 Use ::default over ::empty for RocStr and RocList 2021-08-03 07:28:03 -04:00
Richard Feldman
91f1589f62 Use u8 alignment when copying 2021-08-02 23:30:45 -04:00
Richard Feldman
82d00beb69 Use Self in more places 2021-08-02 23:30:45 -04:00
Richard Feldman
b94d715bc9 Drop alloca from roc_std 2021-08-02 23:30:45 -04:00
Richard Feldman
fbc7984818 Drop libc dependency from roc_std 2021-08-02 22:29:23 -04:00
Richard Feldman
27d8f7b821 Use ffi::c_void over libc::c_void 2021-08-02 22:08:24 -04:00
Richard Feldman
2c7fd2a54d Drop obsolete comment 2021-08-02 22:04:47 -04:00
Richard Feldman
db6a05a6a4 Use a const function over a non-const one 2021-08-02 22:03:57 -04:00