Added fs/fs.h header for new filesystem and added a utility that builds it. The filesystem is not in use though

This commit is contained in:
2024-06-01 12:25:32 +02:00
parent 573299b799
commit d8fd8c0a29
7 changed files with 363 additions and 6 deletions
+2 -3
View File
@@ -9,14 +9,13 @@ int parseNumber(char** ptr);
// TODO: Parsing doesn't account for addition/subtraction inside brackets, fix that
__attribute__ ((section("entry")))
void main() {
int main(int argc, char** argv) {
printf("Welcome to calc.\n");
char input[256];
while (1) {
printf("> ");
read(input);
*strchr(input, '\n') = '\0';
// Remove whitespace
char* old = input;
@@ -39,7 +38,7 @@ void main() {
}
}
return;
return 0;
}
int evalExpr(char* expr, int* res) {
+1
View File
@@ -23,6 +23,7 @@
#include <string.h>
#include <time.h>
#include <color.h>
#include <fs/fs.h>
#define PROMPT "#> "