Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
flang/include/flang/Runtime/command.h
Show All 26 Lines | |||||
// Try to get the value of the whole command. All of the parameters are | // Try to get the value of the whole command. All of the parameters are | ||||
// optional. | // optional. | ||||
// Return a STATUS as described in the standard. | // Return a STATUS as described in the standard. | ||||
std::int32_t RTNAME(GetCommand)(const Descriptor *command = nullptr, | std::int32_t RTNAME(GetCommand)(const Descriptor *command = nullptr, | ||||
const Descriptor *length = nullptr, const Descriptor *errmsg = nullptr, | const Descriptor *length = nullptr, const Descriptor *errmsg = nullptr, | ||||
const char *sourceFile = nullptr, int line = 0); | const char *sourceFile = nullptr, int line = 0); | ||||
// 16.9.83 GET_COMMAND_ARGUMENT | // 16.9.83 GET_COMMAND_ARGUMENT | ||||
// We're breaking up the interface into several different functions, since most | |||||
// of the parameters are optional. | |||||
// Try to get the value of the n'th argument. | // Try to get the value of the n'th argument. | ||||
// Returns a STATUS as described in the standard. | // Returns a STATUS as described in the standard. | ||||
std::int32_t RTNAME(ArgumentValue)( | std::int32_t RTNAME(GetCommandArgument)(std::int32_t n, | ||||
std::int32_t n, const Descriptor *value, const Descriptor *errmsg); | const Descriptor *argument = nullptr, const Descriptor *length = nullptr, | ||||
const Descriptor *errmsg = nullptr, const char *sourceFile = nullptr, | |||||
// Try to get the significant length of the n'th argument. | int line = 0); | ||||
// Returns 0 if it doesn't manage. | |||||
std::int64_t RTNAME(ArgumentLength)(std::int32_t n); | |||||
// 16.9.84 GET_ENVIRONMENT_VARIABLE | // 16.9.84 GET_ENVIRONMENT_VARIABLE | ||||
// We're breaking up the interface into several different functions, since most | // We're breaking up the interface into several different functions, since most | ||||
// of the parameters are optional. | // of the parameters are optional. | ||||
// Try to get the value of the environment variable specified by NAME. | // Try to get the value of the environment variable specified by NAME. | ||||
// Returns a STATUS as described in the standard. | // Returns a STATUS as described in the standard. | ||||
std::int32_t RTNAME(EnvVariableValue)(const Descriptor &name, | std::int32_t RTNAME(EnvVariableValue)(const Descriptor &name, | ||||
Show All 12 Lines |