aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2022-10-29 15:37:18 +0200
committerIgor Pashev <pashev.igor@gmail.com>2022-12-05 18:48:51 +0200
commit4ae82c64d8f219666c2f8315a8a5ab9e30a1c1af (patch)
treec6b6cdec7660f287802ae1397e0dce087969a375 /src/utils
parent088873fbc7f92c3d8d582f29eb44e39a136e944d (diff)
downloadopen-axiom-4ae82c64d8f219666c2f8315a8a5ab9e30a1c1af.tar.gz
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/command.cc5
-rw-r--r--src/utils/hammer.cc2
-rw-r--r--src/utils/storage.cxx12
3 files changed, 16 insertions, 3 deletions
diff --git a/src/utils/command.cc b/src/utils/command.cc
index 55716bc1..b0419a99 100644
--- a/src/utils/command.cc
+++ b/src/utils/command.cc
@@ -234,9 +234,10 @@ build_rts_options(Command* command, Driver driver)
break;
case Runtime::ecl:
- command->rt_args.allocate(2);
+ command->rt_args.allocate(3);
command->rt_args[0] = (char*) "-q";
- command->rt_args[1] = (char*) "-norc";
+ command->rt_args[1] = (char*) "--nodebug";
+ command->rt_args[1] = (char*) "--norc";
break;
default:
diff --git a/src/utils/hammer.cc b/src/utils/hammer.cc
index 003cd1f8..36193c0b 100644
--- a/src/utils/hammer.cc
+++ b/src/utils/hammer.cc
@@ -152,7 +152,7 @@ namespace OpenAxiom::Hammer {
CompositeText prose; // the prose around the chunks.
ChunkTable defs; // chunk definition table.
CompositeText* active_chunk; // chunk under construction.
- const char8_t* text_start; // begining of current basic text.
+ const char8_t* text_start; // beginning of current basic text.
// Append basic text in the range `[text_start,last)'
// to the current chunk.
diff --git a/src/utils/storage.cxx b/src/utils/storage.cxx
index 98b0a27f..a2eb2919 100644
--- a/src/utils/storage.cxx
+++ b/src/utils/storage.cxx
@@ -31,6 +31,10 @@
// --%: Gabriel Dos Reis.
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <open-axiom/storage>
#include <open-axiom/FileMapping>
#ifdef HAVE_SYS_TYPES_H
@@ -56,6 +60,14 @@
#include <stdlib.h>
#include <string.h>
+#if HAVE_DECL_MAP_ANONYMOUS
+# define OPENAXIOM_MM_ANONYMOUS_MAP_FLAG MAP_ANONYMOUS
+#elif HAVE_DECL_MAP_ANON
+# define OPENAXIOM_MM_ANONYMOUS_MAP_FLAG MAP_ANON
+#else
+# error MAP_ANONYMOUS or MAP_ANON must be defined
+#endif
+
namespace OpenAxiom {
// ----------------
// -- SystemError --