hare

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

commit fc0aa8058d7839981e5ae501c4d5d9f61e5a44df
parent bbb19b484329727bb4443230c5380f62c936d76c
Author: Drew DeVault <sir@cmpwn.com>
Date:   Thu,  9 Dec 2021 17:10:11 +0100

rt+libc: exit with libc

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Mrt/start+libc.ha | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/rt/start+libc.ha b/rt/start+libc.ha @@ -1,7 +1,8 @@ @symbol("main") fn main() void; +@symbol("exit") fn c_exit(status: int) void; export @noreturn fn start_ha() void = { // libc runs @init and @fini for us main(); - exit(0); + c_exit(0); };