hare

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

commit 1a11eea2a31d8117fb6615e2a0af8905d7f2b124
parent 18f9eff40f6a51e531168a6fbf0987fa94f40aac
Author: Sebastian <sebastian@sebsite.pw>
Date:   Sat,  7 Sep 2024 16:37:32 -0400

log: remove @init

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mlog/global.ha | 8++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/log/global.ha b/log/global.ha @@ -3,6 +3,7 @@ use io; use os; +use rt; // The global logger instance. export let global: *logger = &_default; @@ -13,12 +14,7 @@ export const default: *logger = &_default; let _default: stdlogger = stdlogger { println = &log_println, printfln = &log_printfln, - sink = -1: io::file, -}; - -@init fn init() void = { - // XXX: Would be nice not to have to do this - _default.sink = os::stderr; + sink = rt::STDERR_FILENO: io::file, }; // Sets the global logger instance to the provided logger.