blob: c04c3133f02a06dbf4b2d7a4f1f33a5663093a8d [file] [log] [blame]
//===-- runtime/environment.h -----------------------------------*- C++ -*-===//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include "flang/Decimal/decimal.h"
#include <optional>
namespace Fortran::runtime {
constexpr bool isHostLittleEndian{false};
constexpr bool isHostLittleEndian{true};
#error host endianness is not known
// External unformatted I/O data conversions
enum class Convert { Unknown, Native, LittleEndian, BigEndian, Swap };
std::optional<Convert> GetConvertFromString(const char *, std::size_t);
struct ExecutionEnvironment {
void Configure(int argc, const char *argv[], const char *envp[]);
int argc;
const char **argv;
const char **envp;
int listDirectedOutputLineLengthLimit;
enum decimal::FortranRounding defaultOutputRoundingMode;
Convert conversion;
extern ExecutionEnvironment executionEnvironment;
} // namespace Fortran::runtime