forked from NeoFlock/noom
peak software
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user