summaryrefslogtreecommitdiff
path: root/platform/elf
diff options
context:
space:
mode:
author0x221e2026-06-17 00:07:58 +0200
committer0x221e2026-06-17 01:12:23 +0300
commit8a77b4096d9f61b6b6eaefb4c8c8abe7f4793b73 (patch)
tree2a51d4bc47e9add8c4175b6906ca8b1e5921c133 /platform/elf
parent9224992817c3faf7d6274681fb5bacc5ad761504 (diff)
lex: pretty error messages and lex_number() checks
Error messages are now pretty (not rlly), and lex_number() now checks improper use of number and binary literals. osal.h now also requires platforms to implement a printv() wrapper.
Diffstat (limited to 'platform/elf')
-rw-r--r--platform/elf/osal.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/elf/osal.c b/platform/elf/osal.c
index 414cd80..2630b97 100644
--- a/platform/elf/osal.c
+++ b/platform/elf/osal.c
@@ -51,6 +51,11 @@ void print(const char *fmt, ...)
va_end(args);
}
+void printv(const char *fmt, va_list l)
+{
+ vprintf(fmt, l);
+}
+
void exitc(int c)
{
exit(c);