31 lines · c
1/*===-- lib/flang_rt/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-exception6 *7 *===----------------------------------------------------------------------===*/8 9#ifndef FLANG_RT_ENVIRONMENT_DEFAULT_LIST_H_10#define FLANG_RT_ENVIRONMENT_DEFAULT_LIST_H_11 12/* Try to maintain C compatibility to make it easier to both define environment13 * defaults in non-Fortran main programs as well as pass through the environment14 * default list in C code.15 */16 17struct EnvironmentDefaultItem {18 const char *name;19 const char *value;20};21 22/* Default values for environment variables are packaged by lowering into an23 * instance of this struct to be read and set by the runtime.24 */25struct EnvironmentDefaultList {26 int numItems;27 const struct EnvironmentDefaultItem *item;28};29 30#endif /* FLANG_RT_ENVIRONMENT_DEFAULT_LIST_H_ */31