hare

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

commit bbb19b484329727bb4443230c5380f62c936d76c
parent 9df4493ae0107fa49d1d646172f328fb93ad8f46
Author: Drew DeVault <sir@cmpwn.com>
Date:   Thu,  9 Dec 2021 17:08:48 +0100

rt+libc: don't run @init/@fini twice

Fixes: https://todo.sr.ht/~sircmpwn/hare/525
Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Art/start+libc.ha | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

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