Commit graph

221 commits

Author SHA1 Message Date
Jared Ramirez
170b5eb707 Small rename 2020-12-08 17:08:33 -08:00
Jared Ramirez
784f299b43 Various small zig str changes 2020-12-08 17:05:26 -08:00
Jared Ramirez
c39ac471ea Zig format 2020-12-04 14:25:29 -07:00
Jared Ramirez
5697ec209b Fix call to str split; Move some comments around 2020-12-04 14:16:07 -07:00
Jared Ramirez
7e9cf27d94 [WIP] Use zig build system in build script; Nearly fix str tests 2020-12-04 14:07:47 -07:00
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
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
31fd70d0b1
Merge branch 'trunk' into str-from-int 2020-12-03 22:26:23 -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
Folkert
4f549b7889 zig style 2020-12-04 01:17:11 +01: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
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
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
Richard Feldman
cd16c67c7d Use small string check more explicitly 2020-12-01 22:11:41 -05:00
Richard Feldman
3bb7e15ac4 Add some TODOs 2020-12-01 22:11:41 -05:00
Richard Feldman
19e5c1350e Revise RocStr a bit 2020-12-01 22:11:41 -05:00
Richard Feldman
35fab76cca Fix test 2020-12-01 22:05:45 -05:00
Richard Feldman
a9d4b38e44 Merge remote-tracking branch 'origin/trunk' into zig-str-concat 2020-12-01 21:50:08 -05:00
Richard Feldman
1b6acf60bd Check zig formatting after running tests 2020-12-01 20:36:09 -05:00
Richard Feldman
b7b9fe16d9 Actually exit 1 if zig tests fail 2020-12-01 20:36:03 -05:00
Richard Feldman
f46f87834f set euxo pipefail on zig tests 2020-12-01 20:35:56 -05:00
Folkert
63f4fbf1ef use zig-defined Str.concat 2020-12-01 23:00:39 +01:00
Folkert
1a71b8bac7 define Str.concat in zig 2020-12-01 21:36:33 +01:00
Folkert
1589e688b3 use the zig formatter 2020-12-01 21:26:37 +01:00