diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2024-02-02 18:58:06 +0300 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-02-19 12:20:40 +0300 |
commit | d3d16228a520ce49884d3bb90b67c12726c63020 (patch) | |
tree | cce05ab391fc5dacc51f3106dd92c499ea45e54e /scripts/kconfig/preprocess.h | |
parent | 56e634b06fd554b819ac9c45fc77a41500861ced (diff) | |
download | linux-d3d16228a520ce49884d3bb90b67c12726c63020.tar.xz |
kconfig: split preprocessor prototypes into preprocess.h
These are needed only for the parse stage. Move the prototypes into
a separate header to make sure they are not used after that.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/kconfig/preprocess.h')
-rw-r--r-- | scripts/kconfig/preprocess.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/kconfig/preprocess.h b/scripts/kconfig/preprocess.h new file mode 100644 index 000000000000..a7e4a550638c --- /dev/null +++ b/scripts/kconfig/preprocess.h @@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +#ifndef PREPROCESS_H +#define PREPROCESS_H + +enum variable_flavor { + VAR_SIMPLE, + VAR_RECURSIVE, + VAR_APPEND, +}; + +struct gstr; +void env_write_dep(struct gstr *gs); +void variable_add(const char *name, const char *value, + enum variable_flavor flavor); +void variable_all_del(void); +char *expand_dollar(const char **str); +char *expand_one_token(const char **str); + +#endif /* PREPROCESS_H */ |