Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+23 -13
+2
scripts/kconfig/lexer.l
··· 14 14 #include <string.h> 15 15 16 16 #include "lkc.h" 17 + #include "preprocess.h" 18 + 17 19 #include "parser.tab.h" 18 20 19 21 #define YY_DECL static int yylex1(void)
-13
scripts/kconfig/lkc_proto.h
··· 40 40 41 41 const char * prop_get_type_name(enum prop_type type); 42 42 43 - /* preprocess.c */ 44 - enum variable_flavor { 45 - VAR_SIMPLE, 46 - VAR_RECURSIVE, 47 - VAR_APPEND, 48 - }; 49 - void env_write_dep(struct gstr *gs); 50 - void variable_add(const char *name, const char *value, 51 - enum variable_flavor flavor); 52 - void variable_all_del(void); 53 - char *expand_dollar(const char **str); 54 - char *expand_one_token(const char **str); 55 - 56 43 /* expr.c */ 57 44 void expr_print(struct expr *e, void (*fn)(void *, struct symbol *, const char *), void *data, int prevtoken); 58 45
+1
scripts/kconfig/parser.y
··· 13 13 14 14 #include "lkc.h" 15 15 #include "internal.h" 16 + #include "preprocess.h" 16 17 17 18 #define printd(mask, fmt...) if (cdebug & (mask)) printf(fmt) 18 19
+1
scripts/kconfig/preprocess.c
··· 11 11 12 12 #include "list.h" 13 13 #include "lkc.h" 14 + #include "preprocess.h" 14 15 15 16 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) 16 17
+19
scripts/kconfig/preprocess.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0-only */ 2 + #ifndef PREPROCESS_H 3 + #define PREPROCESS_H 4 + 5 + enum variable_flavor { 6 + VAR_SIMPLE, 7 + VAR_RECURSIVE, 8 + VAR_APPEND, 9 + }; 10 + 11 + struct gstr; 12 + void env_write_dep(struct gstr *gs); 13 + void variable_add(const char *name, const char *value, 14 + enum variable_flavor flavor); 15 + void variable_all_del(void); 16 + char *expand_dollar(const char **str); 17 + char *expand_one_token(const char **str); 18 + 19 + #endif /* PREPROCESS_H */