mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
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>
This commit is contained in:
parent
56e634b06f
commit
d3d16228a5
@ -14,6 +14,8 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "lkc.h"
|
||||
#include "preprocess.h"
|
||||
|
||||
#include "parser.tab.h"
|
||||
|
||||
#define YY_DECL static int yylex1(void)
|
||||
|
@ -40,19 +40,6 @@ const char * sym_get_string_value(struct symbol *sym);
|
||||
|
||||
const char * prop_get_type_name(enum prop_type type);
|
||||
|
||||
/* preprocess.c */
|
||||
enum variable_flavor {
|
||||
VAR_SIMPLE,
|
||||
VAR_RECURSIVE,
|
||||
VAR_APPEND,
|
||||
};
|
||||
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);
|
||||
|
||||
/* expr.c */
|
||||
void expr_print(struct expr *e, void (*fn)(void *, struct symbol *, const char *), void *data, int prevtoken);
|
||||
|
||||
|
@ -13,6 +13,7 @@
|
||||
|
||||
#include "lkc.h"
|
||||
#include "internal.h"
|
||||
#include "preprocess.h"
|
||||
|
||||
#define printd(mask, fmt...) if (cdebug & (mask)) printf(fmt)
|
||||
|
||||
|
@ -11,6 +11,7 @@
|
||||
|
||||
#include "list.h"
|
||||
#include "lkc.h"
|
||||
#include "preprocess.h"
|
||||
|
||||
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
|
||||
|
||||
|
19
scripts/kconfig/preprocess.h
Normal file
19
scripts/kconfig/preprocess.h
Normal file
@ -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 */
|
Loading…
Reference in New Issue
Block a user