Added 'min' and 'max' as standard functions

Also fixed floating point printing with sprintf
This commit is contained in:
2026-05-27 10:52:06 +10:00
parent f2b714baaa
commit 3e115095d6
13 changed files with 86 additions and 59 deletions
-2
View File
@@ -7,5 +7,3 @@ all:
gdb:
$(MAKE) -C units -k gdb
$(MAKE) -C scripts -k gdb
#TODO: valgrind
+1 -1
View File
@@ -1 +1 @@
//TODO: empty test script
//URGENT: empty test script
+1 -1
View File
@@ -1 +1 @@
//TODO: empty test script
//URGENT: empty test script
+1 -1
View File
@@ -1,4 +1,4 @@
//TODO: empty test script
//URGENT: empty test script
//TODO: test iteration on arrays, tables, closures
+1 -1
View File
@@ -4,7 +4,7 @@
#include <string.h>
int main(void) {
//TODO: Test not yet implemented
//URGENT: Test not yet implemented
printf(TOY_CC_WARN "Test not yet implemented: %s\n" TOY_CC_RESET, __FILE__);
return 0;
}
+1 -1
View File
@@ -117,7 +117,7 @@ int test_functions_from_bytecodes(void) {
}
int test_functions_from_callbacks(void) {
//TODO: Test not yet implemented
//URGENT: Test not yet implemented
printf(TOY_CC_WARN "WIP test not yet implemented: %s\n" TOY_CC_RESET, __FILE__);
return 0;
}
+2 -2
View File
@@ -607,8 +607,8 @@ int main(void) {
total += res;
}
//TODO: references
//TODO: type coersions
//TODO: references?
//TODO: type coersions?
//TODO: opaques?
return total;