Move helper procs into utility.odin
This commit is contained in:
1 parent
88ee5d1a6d
commit
020b147222
2 files changed
+13
-8
No files matched your search
@@ -389,11 +389,3 @@ write_text_align :: proc(w: io.Writer, colw, lpad, rpad: int, text: string, alig
|
|||||||
}
|
}
|
||||||
write_byte_repeat(w, rpad, ' ')
|
write_byte_repeat(w, rpad, ' ')
|
||||||
}
|
}
|
||||||
|
|
||||||
stdio_writer :: proc() -> io.Writer {
|
|
||||||
return io.to_writer(os.stream_from_handle(os.stdout))
|
|
||||||
}
|
|
||||||
|
|
||||||
strings_builder_writer :: proc(b: ^strings.Builder) -> io.Writer {
|
|
||||||
return strings.to_writer(b)
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package text_table
|
||||||
|
|
||||||
|
import "core:io"
|
||||||
|
import "core:os"
|
||||||
|
import "core:strings"
|
||||||
|
|
||||||
|
stdio_writer :: proc() -> io.Writer {
|
||||||
|
return io.to_writer(os.stream_from_handle(os.stdout))
|
||||||
|
}
|
||||||
|
|
||||||
|
strings_builder_writer :: proc(b: ^strings.Builder) -> io.Writer {
|
||||||
|
return strings.to_writer(b)
|
||||||
|
}
|
||||||
Reference in new issue
Block a user