aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/hello.c
diff options
context:
space:
mode:
author lemon <lsof@mailbox.org>2025-10-13 19:06:52 +0200
committer lemon <lsof@mailbox.org>2025-10-13 19:09:48 +0200
commit9812f88a9a612144bea02c7acf499867eb0cbeb9 (patch)
tree0575b7c6b6b72b0683c4ffae108292b3d44998be /test/hello.c
parent3048a0b59baae16727d0c259353ff4be1ae559b4 (diff)
implement most of preprocessor
- concatenation (##) - builtin macros (__FILE__ etc) - fails in some edge cases, and code needs cleanup - add embedded system include files (stddef.h, stdarg.h for now) - can handle stdio.h now
Diffstat (limited to 'test/hello.c')
-rw-r--r--test/hello.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/hello.c b/test/hello.c
index 9d21323..e27be8d 100644
--- a/test/hello.c
+++ b/test/hello.c
@@ -1,4 +1,4 @@
-int printf(char *, ...);
+#include <stdio.h>
int main(int argc, char **argv) {
printf("hello world\n");
}