summaryrefslogtreecommitdiff
path: root/include/platform/osal.h
diff options
context:
space:
mode:
author0x221e2026-06-17 00:07:58 +0200
committer0x221e2026-06-17 01:12:23 +0300
commit8a77b4096d9f61b6b6eaefb4c8c8abe7f4793b73 (patch)
tree2a51d4bc47e9add8c4175b6906ca8b1e5921c133 /include/platform/osal.h
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 'include/platform/osal.h')
-rw-r--r--include/platform/osal.h2
1 files changed, 2 insertions, 0 deletions
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 <stddef.h>
#include <stdint.h>
+#include <stdarg.h>
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