hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 36339a64ab86e01a029ca6c287b184a69aa325a1
parent 5a1eed1cb0227e1dba686ef16a97baf7ac566057
Author: Ember Sawady <ecs@d2evs.net>
Date:   Wed, 11 Oct 2023 06:06:38 +0000

update for checkless for loops

Signed-off-by: Ember Sawady <ecs@d2evs.net>

Diffstat:
Mencoding/pem/pem.ha | 2--
Mfnmatch/fnmatch.ha | 1-
Mformat/ini/scan.ha | 1-
Mhare/lex/lex.ha | 1-
Mhare/parse/import.ha | 1-
Mmath/uints.ha | 1-
Mos/exec/process+freebsd.ha | 1-
Mos/exec/process+linux.ha | 1-
Mregex/regex.ha | 2--
Mtemp/+freebsd.ha | 1-
Mtemp/+linux.ha | 1-
11 files changed, 0 insertions(+), 13 deletions(-)

diff --git a/encoding/pem/pem.ha b/encoding/pem/pem.ha @@ -114,8 +114,6 @@ export fn next(dec: *decoder) ((str, pemdecoder) | io::EOF | io::error) = { b64 = base64::newdecoder(&base64::std_encoding, &dec.in), }); }; - - abort(); // Unreachable }; fn pem_read(st: *io::stream, buf: []u8) (size | io::EOF | io::error) = { diff --git a/fnmatch/fnmatch.ha b/fnmatch/fnmatch.ha @@ -226,7 +226,6 @@ fn fnmatch_internal( case rune => void; }; }; - abort(); }; fn match_bracket( diff --git a/format/ini/scan.ha b/format/ini/scan.ha @@ -91,5 +91,4 @@ export fn next(sc: *scanner) (entry | io::EOF | error) = { strings::sub(line, eq + 1, strings::end), ); }; - abort(); // Unreachable }; diff --git a/hare/lex/lex.ha b/hare/lex/lex.ha @@ -763,7 +763,6 @@ fn nextw(lex: *lexer) ((rune, location) | io::EOF | error) = { }; return r; }; - abort(); }; fn try( diff --git a/hare/parse/import.ha b/hare/parse/import.ha @@ -22,7 +22,6 @@ fn name_list(lexer: *lex::lexer) (ast::import_members | error) = { case => abort(); // Unreachable }; }; - abort(); }; // Parses the import list for a sub-unit diff --git a/math/uints.ha b/math/uints.ha @@ -704,7 +704,6 @@ export fn gcd(a: u64, b: u64) u64 = { }; b >>= trailing_zeros_u64(b); }; - abort(); }; @test fn gcd() void = { diff --git a/os/exec/process+freebsd.ha b/os/exec/process+freebsd.ha @@ -113,7 +113,6 @@ export fn waitall() (uint | error | !(process, exit_status)) = { return (pid, es); }; }; - abort("unreachable"); }; // Checks for process completion, returning its status information on diff --git a/os/exec/process+linux.ha b/os/exec/process+linux.ha @@ -98,7 +98,6 @@ export fn waitall() (uint | error | !(process, exit_status)) = { return (pid, es); }; }; - abort("unreachable"); }; // Checks for process completion, returning its status information on diff --git a/regex/regex.ha b/regex/regex.ha @@ -768,8 +768,6 @@ fn search( }; }; }; - - return void; }; // Returns whether or not a [[regex]] matches any part of a given string. diff --git a/temp/+freebsd.ha b/temp/+freebsd.ha @@ -66,7 +66,6 @@ export fn named( return (f, path); }; }; - abort(); // Unreachable }; // Creates a temporary directory. This function only guarantees that the diff --git a/temp/+linux.ha b/temp/+linux.ha @@ -76,7 +76,6 @@ export fn named( return (f, path); }; }; - abort(); // Unreachable }; // Creates a temporary directory. This function only guarantees that the