Skip to content
Snippets Groups Projects
Commit dab41e8d authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

updated version, and added exec efun.

Rev: lib/simulate.lpc:1.6
parent 6e0ac037
Branches
Tags
No related merge requests found
...@@ -19,7 +19,7 @@ static int open(string file, string how) ...@@ -19,7 +19,7 @@ static int open(string file, string how)
return 1; return 1;
}else{ }else{
current_file=current_mode=0; current_file=current_mode=0;
return 1; return 0;
} }
} }
} }
...@@ -344,6 +344,7 @@ void create() ...@@ -344,6 +344,7 @@ void create()
add_efun("PI",3.1415926535897932384626433832795080); add_efun("PI",3.1415926535897932384626433832795080);
add_efun("capitalize",capitalize); add_efun("capitalize",capitalize);
add_efun("code_value",code_value); add_efun("code_value",code_value);
add_efun("exec","exec");
add_efun("file_size",file_size); add_efun("file_size",file_size);
add_efun("filter_array",filter_array); add_efun("filter_array",filter_array);
add_efun("l_sizeof",sizeof); add_efun("l_sizeof",sizeof);
...@@ -364,7 +365,7 @@ void create() ...@@ -364,7 +365,7 @@ void create()
add_efun("strstr",search); add_efun("strstr",search);
add_efun("sum_arrays",sum_arrays); add_efun("sum_arrays",sum_arrays);
add_efun("this_function",this_function); add_efun("this_function",this_function);
add_efun("version",lambda() { return "uLPC v1.6E-12"; }); add_efun("version",lambda() { return "uLPC v1.7E-12"; });
add_efun("write_file",write_file); add_efun("write_file",write_file);
add_efun("get_function",get_function); add_efun("get_function",get_function);
add_efun("regexp",regexp); add_efun("regexp",regexp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment