From Kirill Primak to ~emersion/public-inbox
This fixes e.g. re-enabling outputs of wlroots' nested backends, and helps to avoid pinning automatically positioned outputs. --- main.c | 64 +++++++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 46 insertions(+), 18 deletions(-) diff --git a/main.c b/main.c index 303e212..fee969e 100644 --- a/main.c +++ b/main.c @@ -23,6 +23,14 @@ struct randr_mode { bool preferred; }; [message trimmed]
From Kirill Primak to ~emersion/public-inbox
--- Note: this assumes that the library user always calls scfg_block_finish() regardless of whether parsing a file has succeeded or not. scfg.c | 142 +++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 93 insertions(+), 49 deletions(-) diff --git a/scfg.c b/scfg.c index a5a9419..41d39a0 100644 --- a/scfg.c +++ b/scfg.c @@ -37,17 +37,21 @@ static int buffer_append_char(struct scfg_buffer *buf, char ch) { return buffer_append(buf, &ch, 1); [message trimmed]
From Kirill Primak to ~sircmpwn/hare-dev
Fixes: https://todo.sr.ht/~sircmpwn/hare/798 Signed-off-by: Kirill Primak <vyivel@eclair.cafe> --- Alternatively, this can be fixed by adding another rsize. encoding/utf8/rune.ha | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/encoding/utf8/rune.ha b/encoding/utf8/rune.ha index ca5337c6..61fd586d 100644 --- a/encoding/utf8/rune.ha +++ b/encoding/utf8/rune.ha @@ -26,6 +26,11 @@ export fn runesz(r: rune) size = { // Returns the expected length of a UTF-8 codepoint in bytes given its first [message trimmed]
From Kirill Primak to ~sircmpwn/hare-dev
Signed-off-by: Kirill Primak <vyivel@eclair.cafe> --- encoding/utf8/decode.ha | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/encoding/utf8/decode.ha b/encoding/utf8/decode.ha index 513a3655..94b52450 100644 --- a/encoding/utf8/decode.ha +++ b/encoding/utf8/decode.ha @@ -28,13 +28,13 @@ export type invalid = !void; const leader_masks: [_]u8 = [0x7F, 0x3F, 0x1F, 0x0F]; fn decode_leader(c: u8) ((size, u8) | invalid) = { for (let i = 0z; i < len(sizes); i += 1) {[message trimmed]
From Kirill Primak to ~emersion/soju-dev
--- service.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/service.go b/service.go index d0b7f99..5a79527 100644 --- a/service.go +++ b/service.go @@ -278,14 +278,14 @@ func init() { admin: true, }, "create": { usage: "-username <username> -password <password> [-realname <realname>] [-admin]", usage: "-username <username> -password <password> [-disable-password] [-admin true|false] [-nick <nick>] [-realname <realname>] [-enabled true|false]",[message trimmed]
From Kirill Primak to ~sircmpwn/hare-dev
Signed-off-by: Kirill Primak <vyivel@eclair.cafe> --- The ticket that was linked previously appears to be invalid. encoding/json/lex.ha | 1 + encoding/json/value.ha | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/encoding/json/lex.ha b/encoding/json/lex.ha index 06b48aa..b07a8ea 100644 --- a/encoding/json/lex.ha +++ b/encoding/json/lex.ha @@ -39,6 +39,7 @@ export fn newlexer(src: io::handle) lexer = { // Frees state associated with a JSON lexer. [message trimmed]
From Kirill Primak to ~sircmpwn/hare-dev
This commit utilizes strings::tokenize(), merges similar code paths, and
allows multiple dependency vendoring.
Dependencies are included in lexicographical order. Assuming the
following directory structure:
vendor/
dependency-1/
alice/
mod.ha
dependency-2/
bob/
mod.ha
dependency-3/
[message trimmed]
From Kirill Primak to ~sircmpwn/hare-dev
Pad milliseconds with zeroes; the number is guaranteed to be in [0, 999] range so these two checks are enough. Signed-off-by: Kirill Primak <vyivel@eclair.cafe> --- Since v1: reformatted the code. rt/+test/run.ha | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rt/+test/run.ha b/rt/+test/run.ha index 7e0635ea..a86ea7da 100644 --- a/rt/+test/run.ha +++ b/rt/+test/run.ha [message trimmed]
From Kirill Primak to ~sircmpwn/hare-dev
Signed-off-by: Kirill Primak <vyivel@eclair.cafe> --- Since v1: no changes. rt/+test/+freebsd.ha | 9 +++++++-- rt/+test/+linux.ha | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/rt/+test/+freebsd.ha b/rt/+test/+freebsd.ha index e815bea2..6d31844a 100644 --- a/rt/+test/+freebsd.ha +++ b/rt/+test/+freebsd.ha @@ -11,6 +11,11 @@ fn time_start() void = { fn time_stop() (size, size) = { [message trimmed]
From Kirill Primak to ~sircmpwn/hare-dev
Pad milliseconds with zeroes; the number is guaranteed to be in [0, 999] range so these two checks are enough. Signed-off-by: Kirill Primak <vyivel@eclair.cafe> --- rt/+test/run.ha | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rt/+test/run.ha b/rt/+test/run.ha index 7e0635ea..e4ae62d1 100644 --- a/rt/+test/run.ha +++ b/rt/+test/run.ha @@ -89,6 +89,8 @@ export fn tests_main() size = { print(" tests completed in "); [message trimmed]