From 22ac3628a15737af8f59d1e3b1d38b74edc7f1b9 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Sat, 8 May 2021 18:51:08 -0400 Subject: Fix 076, add 077,078 sentinels and many-item pointers --- patches/patches/076_sentinels.patch | 4 ++-- patches/patches/077_sentinels2.patch | 4 ++++ patches/patches/078_sentinels3.patch | 4 ++++ 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 patches/patches/077_sentinels2.patch create mode 100644 patches/patches/078_sentinels3.patch (limited to 'patches') 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); -- cgit v1.2.3-ZIG