From f7992b1eab0effc02e177f6608a6314f653308da Mon Sep 17 00:00:00 2001 From: VaclavT Date: Fri, 26 Feb 2021 09:49:01 +0100 Subject: [PATCH] include path changes --- ml.cpp | 11 +++++++---- ml_io.h | 4 ++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/ml.cpp b/ml.cpp index 3f9229d..0051a1c 100644 --- a/ml.cpp +++ b/ml.cpp @@ -4,9 +4,9 @@ #include "ml_date.h" #include "ml_string.h" -#include "csvparser.h" -#include "sslclient.h" -#include "json11.h" +#include "clib/csvparser.h" +#include "clib/sslclient.h" +#include "clib/json11.h" #include @@ -1519,6 +1519,8 @@ namespace builtin { return MlValue::string(args[0].debug()); } + // >>> (map (lambda (x) (+ x 10)) '(1 2 3 4 5 6)) + // => (11 12 13 14 15 16) MlValue map_list(std::vector args, MlEnvironment &env) { eval_args(args, env); @@ -1751,6 +1753,8 @@ int main(int argc, const char **argv) { srand(time(NULL)); try { load_std_lib(env); + // for xcode profiling + // run(read_file_contents("/Users/vaclavt/Development/mlisp/tests/test.lsp"), env); if (argc == 1 || (argc == 2 && std::string(argv[1]) == "-i")) repl(env); @@ -1767,4 +1771,3 @@ int main(int argc, const char **argv) { return 0; } - diff --git a/ml_io.h b/ml_io.h index d673d6e..737c95f 100644 --- a/ml_io.h +++ b/ml_io.h @@ -1,6 +1,6 @@ #pragma once -#include "../ml.h" +#include "ml.h" #include #include @@ -21,4 +21,4 @@ int mk_path_dir(const std::string &path); int rm_path_dir(const std::string &path); -MlValue exec_system_cmd(const std::string &path); \ No newline at end of file +MlValue exec_system_cmd(const std::string &path);