| 1 |
/*===-- runtime/environment-default-list.h --------------------------*- C -*-=== |
| 2 |
* |
| 3 |
* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 |
* See https://llvm.org/LICENSE.txt for license information. |
| 5 |
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 |
* |
| 7 |
* ===-----------------------------------------------------------------------=== |
| 8 |
*/ |
| 9 |
|
| 10 |
#ifndef FORTRAN_RUNTIME_ENVIRONMENT_DEFAULT_LIST_H_ |
| 11 |
#define FORTRAN_RUNTIME_ENVIRONMENT_DEFAULT_LIST_H_ |
| 12 |
|
| 13 |
/* Try to maintain C compatibility to make it easier to both define environment |
| 14 |
* defaults in non-Fortran main programs as well as pass through the environment |
| 15 |
* default list in C code. |
| 16 |
*/ |
| 17 |
|
| 18 |
struct EnvironmentDefaultItem { |
| 19 |
const char *name; |
| 20 |
const char *value; |
| 21 |
}; |
| 22 |
|
| 23 |
/* Default values for environment variables are packaged by lowering into an |
| 24 |
* instance of this struct to be read and set by the runtime. |
| 25 |
*/ |
| 26 |
struct EnvironmentDefaultList { |
| 27 |
int numItems; |
| 28 |
const struct EnvironmentDefaultItem *item; |
| 29 |
}; |
| 30 |
|
| 31 |
#endif /* FORTRAN_RUNTIME_ENVIRONMENT_DEFAULT_LIST_H_ */ |