diff --git a/std/arraylist/arraylist.bro b/std/arraylist/arraylist.hon similarity index 98% rename from std/arraylist/arraylist.bro rename to std/arraylist/arraylist.hon index 93a9cc7..bcd11c2 100644 --- a/std/arraylist/arraylist.bro +++ b/std/arraylist/arraylist.hon @@ -1,4 +1,4 @@ -mem :: import "@std/mem" +import "@std/mem" ArrayList func($T type) type { return struct { diff --git a/std/build/build.bro b/std/build/build.hon similarity index 100% rename from std/build/build.bro rename to std/build/build.hon diff --git a/std/debug/debug.bro b/std/debug/debug.hon similarity index 94% rename from std/debug/debug.bro rename to std/debug/debug.hon index 6c5954f..ecaaeeb 100644 --- a/std/debug/debug.bro +++ b/std/debug/debug.hon @@ -1,5 +1,5 @@ -c :: import "@ffi/c" -io :: import "@std/io" +import "@ffi/c" +import "@std/io" hide write func(_ ?*mut anyopaque, _ io.WriteStream, bytes []u8) usize ! io.WriteError { request usize = bytes.len diff --git a/std/io/io.bro b/std/io/io.hon similarity index 97% rename from std/io/io.bro rename to std/io/io.hon index 6847aca..24d57ae 100644 --- a/std/io/io.bro +++ b/std/io/io.hon @@ -1,5 +1,5 @@ -c :: import "@ffi/c" -meta :: import "@std/meta" +import "@ffi/c" +import "@std/meta" ReadError :: enum { read_failed @@ -276,7 +276,7 @@ hide write_integer func(writer Writer, $T type, value T, base u64, uppercase boo return } -# ponytail: libc keeps float formatting small; replace it with a native shortest-roundtrip writer if locale independence matters. +# note: libc keeps float formatting small; replace it with a native shortest-roundtrip writer if locale independence matters. hide write_float func(writer Writer, $T type, value T, scientific bool) void ! WriteError { match typeinfo!(T) { .float: { @@ -353,12 +353,7 @@ hide write_default func(writer Writer, $T type, value T) void ! WriteError { return } -print func( - writer Writer, - $format []u8, - $Args type, - args Args, -) void ! WriteError { +print func(writer Writer, $format []u8, $Args type, args Args) void ! WriteError { inline for parse_format(format.len, format, Args) |token| { if (token.kind == .unused) { break diff --git a/std/mem/mem.bro b/std/mem/mem.hon similarity index 99% rename from std/mem/mem.bro rename to std/mem/mem.hon index 310486d..12a75dd 100644 --- a/std/mem/mem.bro +++ b/std/mem/mem.hon @@ -1,4 +1,4 @@ -c :: import "@ffi/c" +import "@ffi/c" AllocError :: enum { out_of_memory diff --git a/std/meta/meta.bro b/std/meta/meta.hon similarity index 100% rename from std/meta/meta.bro rename to std/meta/meta.hon diff --git a/std/process/process.bro b/std/process/process.hon similarity index 56% rename from std/process/process.bro rename to std/process/process.hon index 7334191..7bbeab0 100644 --- a/std/process/process.bro +++ b/std/process/process.hon @@ -1,4 +1,4 @@ -io :: import "@std/io" +import "@std/io" Init :: struct { io io.Io diff --git a/std/std.bro b/std/std.hon similarity index 100% rename from std/std.bro rename to std/std.hon