peak software

This commit is contained in:
2026-06-13 22:17:53 +02:00
parent 268d1be18b
commit c98790621d
4 changed files with 136 additions and 67 deletions

View File

@@ -243,12 +243,16 @@ int main(int argc, char **argv) {
if (code == 0) return 1;
int offset = 0;
if (code[0] == '#' && code[1] == '!') for (offset = 2; code[offset] && code[offset] != '\n'; offset++);
return the_theoretical_function_to_execute_your_code_that_should_be_replaced_later(code + offset, argv[0], params.script_path);
int e = the_theoretical_function_to_execute_your_code_that_should_be_replaced_later(code + offset, argv[0], params.script_path);
noom_free(code);
return e;
}
if (params.use_stdin) {
char* code = read_stdin();
if (code == 0) return 1;
return the_theoretical_function_to_execute_your_code_that_should_be_replaced_later(code, argv[0], "stdin");
int e = the_theoretical_function_to_execute_your_code_that_should_be_replaced_later(code, argv[0], "stdin");
noom_free(code);
return e;
}
if (params.enter_repl) {
puts(NOOM_VERSION_TEXT);