From 4ae82c64d8f219666c2f8315a8a5ab9e30a1c1af Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sat, 29 Oct 2022 15:37:18 +0200 Subject: WIP --- src/utils/command.cc | 5 +++-- src/utils/hammer.cc | 2 +- src/utils/storage.cxx | 12 ++++++++++++ 3 files changed, 16 insertions(+), 3 deletions(-) (limited to 'src/utils') 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 #include #ifdef HAVE_SYS_TYPES_H @@ -56,6 +60,14 @@ #include #include +#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 -- -- cgit v1.2.3