aboutsummaryrefslogtreecommitdiff
path: root/mod/io.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2025-05-07 21:22:38 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2025-05-07 21:22:38 +0300
commit0e0c41af58a0f4ec5a39ce77822de71e5523fcba (patch)
tree4a02b2f93e61411cbfc6084b0855dba51b326cd9 /mod/io.c
parent1fadcec6d7b26d34edf3b5b3a293deea0edb4139 (diff)
downloadfwd-0e0c41af58a0f4ec5a39ce77822de71e5523fcba.tar.gz
fwd-0e0c41af58a0f4ec5a39ce77822de71e5523fcba.zip
implement enough type analysis for vector examplegnc
+ Big commit, scary + Some details still a bit up in the air, mainly about move checking structure member access ('register' types are freely copied I guess, same as in rust? How about user types?)
Diffstat (limited to 'mod/io.c')
-rw-r--r--mod/io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/io.c b/mod/io.c
index 380566f..d376d1c 100644
--- a/mod/io.c
+++ b/mod/io.c
@@ -4,14 +4,14 @@
#include <fwd/mod.h>
-long print_nl(fwd_extern_args_t args)
+long fwdprint_nl(fwd_extern_args_t args)
{
assert(args.argc == 0);
putchar('\n');
return 0;
}
-long print_i64(fwd_extern_args_t args)
+long fwdprint_i64(fwd_extern_args_t args)
{
assert(args.argc == 1);
int64_t n = FWD_ARG_T(args, 0, int64_t);
@@ -21,10 +21,10 @@ long print_i64(fwd_extern_args_t args)
int fwdopen(fwd_state_t *state)
{
- FWD_REGISTER(state, print_nl,
+ FWD_REGISTER(state, fwdprint_nl,
FWD_VOID);
- FWD_REGISTER(state, print_i64,
+ FWD_REGISTER(state, fwdprint_i64,
FWD_VOID, FWD_T(int64_t));
return 0;