mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 05:16:06 +00:00

To accomplish this, this patch creates an optional list of environment variable default values to be set by the runtime to allow directly using the existing runtime implementation of FORT_CONVERT for I/O conversions.
32 lines
1.0 KiB
C
Executable File
32 lines
1.0 KiB
C
Executable File
/*===-- runtime/environment-default-list.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
|
|
*
|
|
* ===-----------------------------------------------------------------------===
|
|
*/
|
|
|
|
#ifndef FORTRAN_RUNTIME_ENVIRONMENT_DEFAULT_LIST_H_
|
|
#define FORTRAN_RUNTIME_ENVIRONMENT_DEFAULT_LIST_H_
|
|
|
|
/* Try to maintain C compatibility to make it easier to both define environment
|
|
* defaults in non-Fortran main programs as well as pass through the environment
|
|
* default list in C code.
|
|
*/
|
|
|
|
struct EnvironmentDefaultItem {
|
|
const char *name;
|
|
const char *value;
|
|
};
|
|
|
|
/* Default values for environment variables are packaged by lowering into an
|
|
* instance of this struct to be read and set by the runtime.
|
|
*/
|
|
struct EnvironmentDefaultList {
|
|
int numItems;
|
|
const struct EnvironmentDefaultItem *item;
|
|
};
|
|
|
|
#endif /* FORTRAN_RUNTIME_ENVIRONMENT_DEFAULT_LIST_H_ */
|