Document various undocumented modules
Signed-off-by: Drew DeVault <drew@ddevault.org>
hare::parse: export parsing utilities
This makes it easier for third-parties to work with annotations. There
might be more room to expand these utilities later, but exporting these
three is a good start.
hare::lex: add registration for user annotations
Signed-off-by: Drew DeVault <sir@cmpwn.com>
hare::lex: scan & discard annotations
Signed-off-by: Drew DeVault <sir@cmpwn.com>
test: sort tests by name
Makes it easier to find a test of interest while scanning the output of
a large test series.
Signed-off-by: Drew DeVault <drew@ddevault.org>
bufio::scanner: address my own feedback
Signed-off-by: Lorenz (xha) <me@xha.li>
hare::lex: add save, restore functions
Signed-off-by: Drew DeVault <drew@ddevault.org>
io::dup, io::dup2: make flags optional
Signed-off-by: Drew DeVault <drew@ddevault.org>
debug: print context on assertion failure
Signed-off-by: Drew DeVault <drew@ddevault.org>
rt::strcmp: O(1) if data pointers are equal
Signed-off-by: Drew DeVault <drew@ddevault.org>
io::copier: accept io::handle for "from"
Breaking-change: io::copier
Signed-off-by: Drew DeVault <drew@ddevault.org>
strings::dup: update comment for nomem changes
Signed-off-by: Amelia Clarke <selene@perilune.dev>
net::dial::dial_uri: don't return nomem
Signed-off-by: Drew DeVault <drew@ddevault.org>