Commit graph

3217 commits

Author SHA1 Message Date
Richard Feldman
fc2a37b22b Use alloc over dupe 2020-12-04 01:35:20 -05:00
Richard Feldman
c83e3ce27f Merge branch 'trunk' into no-implicit-zig-allocator 2020-12-04 00:59:23 -05:00
Richard Feldman
7b5eb08617 Re-snake_case main.zig args 2020-12-04 00:38:33 -05:00
Richard Feldman
ee9f426ed8 Re-camelCase function names 2020-12-04 00:38:33 -05:00
Richard Feldman
0b16f5c1ea Revert "Use camelCase in str.zig"
This reverts commit 0583cc1a27.
2020-12-04 00:38:33 -05:00
Richard Feldman
3ee990b0a0 Explicitly link libc in build.zig 2020-12-04 00:34:31 -05:00
Richard Feldman
497e1538b0 fix some memory leaks in tests 2020-12-04 00:29:47 -05:00
Richard Feldman
505ade3282 Don't try to free empty strings 2020-12-04 00:17:46 -05:00
Richard Feldman
ef258fe675 deinit more in tests 2020-12-04 00:05:07 -05:00
Richard Feldman
f55af7282c Merge branch 'trunk' into no-implicit-zig-allocator 2020-12-03 23:53:46 -05:00
Richard Feldman
4a72ae8ed0 Add --libary c when building zig hosts 2020-12-03 23:37:36 -05:00
Richard Feldman
5a111cb263 Rename drop to deinit, per Zig convention 2020-12-03 23:08:30 -05:00
Richard Feldman
83529079cf allocateStr uses @sizeOf(usize) instead of 8 2020-12-03 23:01:46 -05:00
Richard Feldman
8a4e131abd Fix typo 2020-12-03 22:59:46 -05:00
Richard Feldman
aeacbed870 Use camelCase in main.zig 2020-12-03 22:59:05 -05:00
Richard Feldman
0583cc1a27 Use camelCase in str.zig 2020-12-03 22:58:19 -05:00
Richard Feldman
544e1f294a
Fix doc comment 2020-12-03 22:30:24 -05:00
Richard Feldman
31fd70d0b1
Merge branch 'trunk' into str-from-int 2020-12-03 22:26:23 -05:00
Richard Feldman
cb488f5f4c
Fix comment 2020-12-03 22:26:09 -05:00
Richard Feldman
567e0e6a8f
Merge pull request #765 from rtfeldman/list-refcount-issues
Fix some list refcount issues
2020-12-03 22:23:21 -05:00
rvcas
f527afe9fd feat: put all exposes from platform in package module ids 2020-12-03 20:30:19 -05:00
rvcas
654a018106 chore: remove load pkg config from plain line 2020-12-03 20:06:25 -05:00
Folkert
4f549b7889 zig style 2020-12-04 01:17:11 +01:00
rvcas
6d4ecc8023 feat: handle plain line package 2020-12-03 19:10:10 -05:00
rvcas
79cce7c5c9 Merge branch 'trunk' into task_can 2020-12-03 19:05:10 -05:00
Folkert
4b0b5126a1 add Str.fromInt 2020-12-04 00:37:19 +01:00
Richard Feldman
77d68491fb
Revise comment about RocStr.init ownership 2020-12-03 18:36:54 -05:00
Folkert
82e87d04e3 rename str.len to str.number_of_bytes 2020-12-03 21:23:07 +01:00
Folkert
22d798b7c7 add Str.endsWith 2020-12-03 19:16:50 +01:00
Folkert
e8583a72fb fix zig tests 2020-12-03 17:20:08 +01:00
Folkert
3162ab5fc4 simplify str_len 2020-12-03 16:22:47 +01:00
Folkert
f21af47fc1 simplify str_starts_with 2020-12-03 16:10:24 +01:00
Folkert
770d4d7bc3 simplify str_count_graphemes 2020-12-03 16:07:14 +01:00
Folkert
3d6ea21184 cleanup 2020-12-03 16:04:08 +01:00
Folkert
3554a81add pass RocStr over the zig/llvm boundary 2020-12-03 15:52:27 +01:00
Folkert
a03426c4d3 Merge remote-tracking branch 'origin/trunk' into list-refcount-issues 2020-12-03 15:27:06 +01:00
Folkert
4829368ca8 code cleanup 2020-12-03 15:24:15 +01:00
Jared Ramirez
e8b86ad887 Fix merge conflicts with concat 2020-12-02 19:26:25 -08:00
Jared Ramirez
2911678eeb Fix str allocation 2020-12-02 19:16:33 -08:00
Jared Ramirez
4504306370 [WIP] Fix str.split allocation 2020-12-02 19:16:17 -08:00
Jared Ramirez
87da39c8f6 Don't use the implicit libc allocator in RocStr 2020-12-02 19:16:15 -08:00
Richard Feldman
e45dcd0208 Fix regions in a test 2020-12-02 22:06:04 -05:00
Richard Feldman
80d959a103 Restore original state if skip parsers fail 2020-12-02 22:04:46 -05:00
Richard Feldman
e2804398b4 Fix keyword parsing bug 2020-12-02 21:56:31 -05:00
Richard Feldman
98fa4a752d Reproduce keyword parsing bug 2020-12-02 21:56:31 -05:00
rvcas
4808611fc3 fix: don't hard code base 2020-12-02 21:53:15 -05:00
Richard Feldman
7e91e916d7 Reproduce parse bug 2020-12-02 19:05:24 -05:00
Folkert
0a8415b48e fix closure not decremented 2020-12-02 22:51:16 +01:00
Folkert
654342fb54 cleanup 2020-12-02 21:42:27 +01:00
Richard Feldman
2d9fe11c64
Merge branch 'trunk' into zig-hosts 2020-12-01 23:05:11 -05:00