diff options
author | Dave Gauer <dave@ratfactor.com> | 2021-05-08 18:51:08 -0400 |
---|---|---|
committer | Dave Gauer <dave@ratfactor.com> | 2021-05-08 18:51:08 -0400 |
commit | 22ac3628a15737af8f59d1e3b1d38b74edc7f1b9 (patch) | |
tree | e5939c631227cd5b873b1fd12ac2262285f07305 /patches | |
parent | 71e43b0a5048212bae960332b3451ba2ee85d4e7 (diff) | |
download | ziglings-22ac3628a15737af8f59d1e3b1d38b74edc7f1b9.tar.gz ziglings-22ac3628a15737af8f59d1e3b1d38b74edc7f1b9.tar.bz2 ziglings-22ac3628a15737af8f59d1e3b1d38b74edc7f1b9.tar.xz ziglings-22ac3628a15737af8f59d1e3b1d38b74edc7f1b9.zip |
Fix 076, add 077,078 sentinels and many-item pointers
Diffstat (limited to 'patches')
-rw-r--r-- | patches/patches/076_sentinels.patch | 4 | ||||
-rw-r--r-- | patches/patches/077_sentinels2.patch | 4 | ||||
-rw-r--r-- | patches/patches/078_sentinels3.patch | 4 |
3 files changed, 10 insertions, 2 deletions
diff --git a/patches/patches/076_sentinels.patch b/patches/patches/076_sentinels.patch index 52a5424..33e4483 100644 --- a/patches/patches/076_sentinels.patch +++ b/patches/patches/076_sentinels.patch @@ -1,8 +1,8 @@ -82c82 +83c83 < for (???) |s| { --- > for (my_seq) |s| { -94c94 +95c95 < while (??? != my_sentinel) { --- > while (my_seq[i] != my_sentinel) { diff --git a/patches/patches/077_sentinels2.patch b/patches/patches/077_sentinels2.patch new file mode 100644 index 0000000..4fef677 --- /dev/null +++ b/patches/patches/077_sentinels2.patch @@ -0,0 +1,4 @@ +63c63 +< const printable = ???; +--- +> const printable = foo.data[0..foo.length]; diff --git a/patches/patches/078_sentinels3.patch b/patches/patches/078_sentinels3.patch new file mode 100644 index 0000000..94257b0 --- /dev/null +++ b/patches/patches/078_sentinels3.patch @@ -0,0 +1,4 @@ +24c24 +< const printable: [*:0]const u8 = ???; +--- +> const printable: [*:0]const u8 = @ptrCast([*:0]const u8, data); |