various optimisations

This commit is contained in:
kdx
2023-07-25 05:43:10 +02:00
parent 575ed7aa64
commit 1452a70b85
18 changed files with 58 additions and 61 deletions

View File

@ -1,10 +1,14 @@
putstr(str)
{
local i = 0;
if (str == NULL) {
putstr("(null)");
return NULL;
}
loop {
if ([str + i] == 0)
return;
return str;
putchar([str + i]);
i++;
i = i + 1;
}
}