From 8a77b4096d9f61b6b6eaefb4c8c8abe7f4793b73 Mon Sep 17 00:00:00 2001 From: 0x221e Date: Wed, 17 Jun 2026 00:07:58 +0200 Subject: 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. --- include/platform/osal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/platform/osal.h') diff --git a/include/platform/osal.h b/include/platform/osal.h index b6a35d9..493ce6f 100644 --- a/include/platform/osal.h +++ b/include/platform/osal.h @@ -3,6 +3,7 @@ #include #include +#include void* mem_alloc(size_t s); void mem_free(void *p); @@ -19,6 +20,7 @@ struct file { struct file open_file(const char *path, int flags); void print(const char *fmt, ...); +void printv(const char *fmt, va_list l); void exitc(int c); #endif -- cgit v1.2.3