From 7cc938fc7cc115c59f19d57f1ae5f0d0ec512f36 Mon Sep 17 00:00:00 2001 From: VaclavT Date: Mon, 19 Apr 2021 21:13:35 +0200 Subject: [PATCH] when starting load only stdlib.lsp file, fix executable name in -v later function for loading other files from mlisp dir will be added --- ml.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ml.h b/ml.h index 45faf33..7c618fb 100644 --- a/ml.h +++ b/ml.h @@ -7,14 +7,14 @@ #include #include -const std::string VERSION = "mi 0.1 (" __DATE__ " " __TIME__ ")"; +const std::string VERSION = "ml 0.1 (" __DATE__ " " __TIME__ ")"; const std::string STDLIB_LOADER = R"( (do (define ___lib_path "/usr/local/var/mlisp") (if (is-dir? ___lib_path) (for file (ls-dir ___lib_path) - (if (string-regex? file "^.*\.l(i)?sp$") + (if (string-regex? file "^stdlib\.lsp$") (include (+ ___lib_path "/" file))) ))) )";