hare

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

commit 2a06bfce35c1314107e446e6c1c190cc3f0c00b5
parent 35fd6313cbffd0cd33d634c0aa29858f7b126ef2
Author: Armin Weigl <tb46305@gmail.com>
Date:   Sat, 20 Feb 2021 17:07:05 +0100

Add @noreturn to start_*

Diffstat:
Mrt/+linux/start.ha | 2+-
Mrt/+test/start.ha | 2+-
Mrt/start.ha | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/rt/+linux/start.ha b/rt/+linux/start.ha @@ -1,4 +1,4 @@ -export fn start_linux(iv: *[*]uintptr) void = { +export @noreturn fn start_linux(iv: *[*]uintptr) void = { // TODO: Find & parse auxv argc = iv[0]: size; argv = &iv[1]: *[*]*char; diff --git a/rt/+test/start.ha b/rt/+test/start.ha @@ -13,7 +13,7 @@ const @symbol("__test_array_end") test_end: [*]test; let jmp: jmpbuf = jmpbuf { ... }; let reason: str = ""; -export fn start_ha() void = { +export @noreturn fn start_ha() void = { const ninit = (&init_end: uintptr - &init_start: uintptr): size / size(*fn() void); for (let i = 0z; i < ninit; i += 1) { diff --git a/rt/start.ha b/rt/start.ha @@ -5,7 +5,7 @@ const @symbol("__init_array_end") init_end: [*]*fn() void; const @symbol("__fini_array_start") fini_start: [*]*fn() void; const @symbol("__fini_array_end") fini_end: [*]*fn() void; -export fn start_ha() void = { +export @noreturn fn start_ha() void = { const ninit = (&init_end: uintptr - &init_start: uintptr): size / size(*fn() void); for (let i = 0z; i < ninit; i += 1) {