2020-01-09 05:27:32 +08:00
|
|
|
//===-- runtime/stop.h ------------------------------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// 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_STOP_H_
|
|
|
|
#define FORTRAN_RUNTIME_STOP_H_
|
|
|
|
|
|
|
|
#include "c-or-cpp.h"
|
|
|
|
#include "entry-names.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
2020-03-06 14:51:41 +08:00
|
|
|
FORTRAN_EXTERN_C_BEGIN
|
2020-01-09 05:27:32 +08:00
|
|
|
|
|
|
|
// Program-initiated image stop
|
|
|
|
NORETURN void RTNAME(StopStatement)(int code DEFAULT_VALUE(EXIT_SUCCESS),
|
|
|
|
bool isErrorStop DEFAULT_VALUE(false), bool quiet DEFAULT_VALUE(false));
|
2020-10-02 03:12:46 +08:00
|
|
|
NORETURN void RTNAME(StopStatementText)(const char *, size_t,
|
2020-01-09 05:27:32 +08:00
|
|
|
bool isErrorStop DEFAULT_VALUE(false), bool quiet DEFAULT_VALUE(false));
|
2020-07-05 02:06:28 +08:00
|
|
|
void RTNAME(PauseStatement)(NO_ARGUMENTS);
|
2020-10-02 03:12:46 +08:00
|
|
|
void RTNAME(PauseStatementInt)(int);
|
|
|
|
void RTNAME(PauseStatementText)(const char *, size_t);
|
2020-01-09 05:27:32 +08:00
|
|
|
NORETURN void RTNAME(FailImageStatement)(NO_ARGUMENTS);
|
2020-01-24 08:59:27 +08:00
|
|
|
NORETURN void RTNAME(ProgramEndStatement)(NO_ARGUMENTS);
|
2020-01-09 05:27:32 +08:00
|
|
|
|
2020-03-06 14:51:41 +08:00
|
|
|
FORTRAN_EXTERN_C_END
|
2020-01-09 05:27:32 +08:00
|
|
|
|
2020-03-29 12:00:16 +08:00
|
|
|
#endif // FORTRAN_RUNTIME_STOP_H_
|