2020-01-17 05:51:25 +08:00
|
|
|
//===-- runtime/main.h ------------------------------------------*- C++ -*-===//
|
2020-01-09 05:27:32 +08:00
|
|
|
//
|
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
//
|
2020-01-11 04:12:03 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
2020-01-09 05:27:32 +08:00
|
|
|
|
|
|
|
#ifndef FORTRAN_RUNTIME_MAIN_H_
|
|
|
|
#define FORTRAN_RUNTIME_MAIN_H_
|
|
|
|
|
2020-01-15 06:19:42 +08:00
|
|
|
#include "entry-names.h"
|
|
|
|
|
2020-01-09 05:27:32 +08:00
|
|
|
namespace Fortran::runtime {
|
2020-01-17 05:51:25 +08:00
|
|
|
struct ExecutionEnvironment {
|
|
|
|
void Configure(int argc, const char *argv[], const char *envp[]);
|
|
|
|
|
|
|
|
int argc;
|
|
|
|
const char **argv;
|
|
|
|
const char **envp;
|
|
|
|
int listDirectedOutputLineLengthLimit;
|
|
|
|
};
|
|
|
|
extern ExecutionEnvironment executionEnvironment;
|
2020-01-09 05:27:32 +08:00
|
|
|
}
|
|
|
|
|
2020-01-15 06:19:42 +08:00
|
|
|
extern "C" {
|
|
|
|
void RTNAME(ProgramStart)(int, const char *[], const char *[]);
|
|
|
|
}
|
|
|
|
|
2020-01-09 05:27:32 +08:00
|
|
|
#endif // FORTRAN_RUNTIME_MAIN_H_
|