Skip to content

Commit 636a162

Browse files
rovkajeanPerier
authored andcommitted
[flang] Add runtime interface for GET_COMMAND
Use a single entry point with several optional parameters. Differential Revision: https://reviews.llvm.org/D118776
1 parent 04cdacf commit 636a162

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

flang/include/flang/Runtime/command.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ extern "C" {
2323
// integer kind.
2424
std::int32_t RTNAME(ArgumentCount)();
2525

26+
// 16.9.82 GET_COMMAND
27+
// Try to get the value of the whole command. All of the parameters are
28+
// optional.
29+
// Return a STATUS as described in the standard.
30+
std::int32_t RTNAME(GetCommand)(const Descriptor *command = nullptr,
31+
const Descriptor *length = nullptr, const Descriptor *errmsg = nullptr);
32+
2633
// 16.9.83 GET_COMMAND_ARGUMENT
2734
// We're breaking up the interface into several different functions, since most
2835
// of the parameters are optional.

0 commit comments

Comments
 (0)