[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 07/12] libpoke: Add `__pkl_unsafe_string_set` builtin
From: |
Mohammad-Reza Nabipoor |
Subject: |
Re: [PATCH 07/12] libpoke: Add `__pkl_unsafe_string_set` builtin |
Date: |
Sun, 30 May 2021 02:14:23 +0430 |
On Thu, May 27, 2021 at 02:00:04PM +0200, Jose E. Marchesi wrote:
>
> > diff --git a/testsuite/poke.pkl/unsafe-string-set-diag-1.pk
> > b/testsuite/poke.pkl/unsafe-string-set-diag-1.pk
> > new file mode 100644
> > index 00000000..d3f35ed5
> > --- /dev/null
> > +++ b/testsuite/poke.pkl/unsafe-string-set-diag-1.pk
> > @@ -0,0 +1,5 @@
> > +/* { dg-do run } */
> > +
> > +var s = "Earth";
> > +
> > +__pkl_unsafe_string_set(s, 2, "Mars"); /* { dg-output "unhandled out of
> > bounds exception" } */
>
> Please leave a space after (.
>
> > diff --git a/testsuite/poke.pkl/unsafe-string-set-diag-2.pk
> > b/testsuite/poke.pkl/unsafe-string-set-diag-2.pk
> > new file mode 100644
> > index 00000000..65dcf2fe
> > --- /dev/null
> > +++ b/testsuite/poke.pkl/unsafe-string-set-diag-2.pk
> > @@ -0,0 +1,5 @@
> > +/* { dg-do run } */
> > +
> > +var s = "Mars";
> > +
> > +__pkl_unsafe_string_set(s, 0, "Earth"); /* { dg-output "unhandled out of
> > bounds exception" } */
>
> Ditto.
> Other than that this is OK for master.
> Thanks!
>
Pushed to both master and maint/poke-1 (as you said in the reply to the next
message to enable the next fix (%v in printf)).
Thanks.
- Re: [PATCH 04/12] libpoke/pvm.jitter: Use more `pvm_make_string_nodup`, (continued)
- [PATCH 05/12] libpoke/pkl-rt.pk: Fix typo s/gigi/gibi/, Mohammad-Reza Nabipoor, 2021/05/25
- [PATCH 06/12] libpoke: Fix trivial errors, Mohammad-Reza Nabipoor, 2021/05/25
- [PATCH 07/12] libpoke: Add `__pkl_unsafe_string_set` builtin, Mohammad-Reza Nabipoor, 2021/05/25
- [PATCH 08/12] libpoke: Fix printf %v for strings to give valid literals, Mohammad-Reza Nabipoor, 2021/05/25
- [PATCH 09/12] libpoke: Fix a bug and add assertions to pvm_make_*, Mohammad-Reza Nabipoor, 2021/05/25
- [PATCH 10/12] libpoke: Add skeleton for string properties instructions, Mohammad-Reza Nabipoor, 2021/05/25
- [PATCH 11/12] libpoke: Add `format`, Mohammad-Reza Nabipoor, 2021/05/25