1 //===-- runtime/environment.h -----------------------------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #ifndef FORTRAN_RUNTIME_ENVIRONMENT_H_ 10 #define FORTRAN_RUNTIME_ENVIRONMENT_H_ 11 12 #include "flang/Decimal/decimal.h" 13 14 namespace Fortran::runtime { 15 struct ExecutionEnvironment { 16 void Configure(int argc, const char *argv[], const char *envp[]); 17 18 int argc; 19 const char **argv; 20 const char **envp; 21 int listDirectedOutputLineLengthLimit; 22 enum decimal::FortranRounding defaultOutputRoundingMode; 23 }; 24 extern ExecutionEnvironment executionEnvironment; 25 } // namespace Fortran::runtime 26 27 #endif // FORTRAN_RUNTIME_ENVIRONMENT_H_ 28