From dab41e8d7c986754d2cdd05a21ddb0c8d45a36df Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net>
Date: Sat, 10 Feb 1996 22:09:11 +0100
Subject: [PATCH] updated version, and added exec efun.

Rev: lib/simulate.lpc:1.6
---
 lib/simulate.lpc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/simulate.lpc b/lib/simulate.lpc
index 4a4d9f9753..8140b0219d 100644
--- a/lib/simulate.lpc
+++ b/lib/simulate.lpc
@@ -19,7 +19,7 @@ static int open(string file, string how)
       return 1;
     }else{
       current_file=current_mode=0;
-      return 1;
+      return 0;
     }
   }
 }
@@ -344,6 +344,7 @@ void create()
   add_efun("PI",3.1415926535897932384626433832795080);
   add_efun("capitalize",capitalize);
   add_efun("code_value",code_value);
+  add_efun("exec","exec");
   add_efun("file_size",file_size);
   add_efun("filter_array",filter_array);
   add_efun("l_sizeof",sizeof);
@@ -364,7 +365,7 @@ void create()
   add_efun("strstr",search);
   add_efun("sum_arrays",sum_arrays);
   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("get_function",get_function);
   add_efun("regexp",regexp);
-- 
GitLab