From Dmitry Matveyev to ~mpu/qbe
6. How do I read this notation: s_0x1.fffffe091ff3dp+127 It looks like unbiased exponent, fraction, bias?.. https://en.wikipedia.org/wiki/IEEE_754-1985
From Dmitry Matveyev to ~mpu/qbe
4. Should this in test/mem3.ssa: type :tags.2 = { { :type.3 1 } } be interpreted same as: type :tags.2 = { :type.3 1 } 5. In test/abi5.ssa: type :un9 = { { b } { s } } I see that in the test output it is same as union { char c; float f; } I suppose it is not in the latest spec currently?
From Dmitry Matveyev to ~mpu/qbe
Hi, I'm writing a parser for qbe, I have several questions about the spec: 1. There's no "load" instruction present but it is present in test/tls.ssa file. How to interpret this instruction? 2. I haven't found the definition of VAL, is it true that VAL := DYNCONST | %IDENT 3. Is it true that the return address for an instruction must be %IDENT? Any hints would be appreciated.
From Dmitry Matveyev to ~yerinalexey/public-inbox
> I'll try to come up with a hack to fix this without breaking anything.
Alright, I will leave it to you then, hopefully something not too ugly
can be hacked in.
From Dmitry Matveyev to ~yerinalexey/public-inbox
Hi, I have found that export fn list_box_connect_row_activated( instance: *ListBox, handler: *fn(instance: *ListBox, row: ListBoxRow, data: *void) void, data: nullable *void, and export fn list_box_connect_row_selected( instance: *ListBox, handler: *fn(instance: *ListBox, row: ListBoxRow, data: *void) void,
From Dmitry Matveyev to ~sircmpwn/hare-dev
Signed-off-by: Dmitry Matveyev <public@greenfork.me> --- I have spent some time figuring out what was going on because I'm used to such functions not eating the delimiter itself. I hope that the comment will help people with similar expectations. bufio/scanner.ha | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bufio/scanner.ha b/bufio/scanner.ha index 7fe988b1..415cfd67 100644 --- a/bufio/scanner.ha @@ -266,8 +266,8 @@ export fn scanbyte(file: io::handle) (u8 | io::EOF | io::error) = { [message trimmed]
From Dmitry Matveyev to ~sircmpwn/hare-dev
Thanks for the review, Ember!
> planning to do resolvconf as well?
Yes, I am, I will do it next.
From Dmitry Matveyev to ~sircmpwn/hare-dev
Main changes:
* Add types: host, iterator, !error, !invalid
* Add functions: next, iter, iter_lookup, strerror, finish
* Add proper error handling
* Add tests
References: https://todo.sr.ht/~sircmpwn/hare/442
Signed-off-by: Dmitry Matveyev <public@greenfork.me>
---
Changes v3-v4:
* Added const modifier to string parameters for lookup.
* Tests are in test+test.ha, also had to add back +linux.ha and
+freebsd.ha because their PATH is referenced in lookup.
* lookup divided into lookup and iter_lookup.
[message trimmed]
From Dmitry Matveyev to ~sircmpwn/hare-dev
"Ember Sawady" <ecs@d2evs.net> writes: >> diff --git a/unix/hosts/hosts.ha b/unix/hosts/hosts.ha >> new file mode 100644 >> index 00000000..17963f47 >> --- /dev/null >> +++ b/unix/hosts/hosts.ha >> @@ -0,0 +1,124 @@ > -%<- >> +// Iterator through the host lines in a host file. >> +export type iterator = struct { handle: io::handle }; > > this can just be export type iterator = io::handle;
From Dmitry Matveyev to ~sircmpwn/hare-dev
> ✗ #1004283 FAILED hare/patches/alpine.yml https://builds.sr.ht/~sircmpwn/job/1004283
I have an error here with a duplicated PATH definition. I'm not sure
what's the correct strategy to not include unix/hosts/+linux.ha when
testing and only include unix/hosts/+test.ha.