diff options
Diffstat (limited to 'scripts/kconfig/lkc.h')
-rw-r--r-- | scripts/kconfig/lkc.h | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/scripts/kconfig/lkc.h b/scripts/kconfig/lkc.h index febf0c94d55..b633bdb9f3d 100644 --- a/scripts/kconfig/lkc.h +++ b/scripts/kconfig/lkc.h | |||
@@ -21,12 +21,7 @@ static inline char *bind_textdomain_codeset(const char *dn, char *c) { return c; | |||
21 | extern "C" { | 21 | extern "C" { |
22 | #endif | 22 | #endif |
23 | 23 | ||
24 | #ifdef LKC_DIRECT_LINK | ||
25 | #define P(name,type,arg) extern type name arg | 24 | #define P(name,type,arg) extern type name arg |
26 | #else | ||
27 | #include "lkc_defs.h" | ||
28 | #define P(name,type,arg) extern type (*name ## _p) arg | ||
29 | #endif | ||
30 | #include "lkc_proto.h" | 25 | #include "lkc_proto.h" |
31 | #undef P | 26 | #undef P |
32 | 27 | ||
@@ -68,9 +63,7 @@ struct kconf_id { | |||
68 | enum symbol_type stype; | 63 | enum symbol_type stype; |
69 | }; | 64 | }; |
70 | 65 | ||
71 | #ifdef YYDEBUG | ||
72 | extern int zconfdebug; | 66 | extern int zconfdebug; |
73 | #endif | ||
74 | 67 | ||
75 | int zconfparse(void); | 68 | int zconfparse(void); |
76 | void zconfdump(FILE *out); | 69 | void zconfdump(FILE *out); |
@@ -81,9 +74,6 @@ void zconf_nextfile(const char *name); | |||
81 | int zconf_lineno(void); | 74 | int zconf_lineno(void); |
82 | const char *zconf_curname(void); | 75 | const char *zconf_curname(void); |
83 | 76 | ||
84 | /* conf.c */ | ||
85 | void xfgets(char *str, int size, FILE *in); | ||
86 | |||
87 | /* confdata.c */ | 77 | /* confdata.c */ |
88 | const char *conf_get_configname(void); | 78 | const char *conf_get_configname(void); |
89 | const char *conf_get_autoconfig_name(void); | 79 | const char *conf_get_autoconfig_name(void); |
@@ -92,6 +82,11 @@ void sym_set_change_count(int count); | |||
92 | void sym_add_change_count(int count); | 82 | void sym_add_change_count(int count); |
93 | void conf_set_all_new_symbols(enum conf_def_mode mode); | 83 | void conf_set_all_new_symbols(enum conf_def_mode mode); |
94 | 84 | ||
85 | struct conf_printer { | ||
86 | void (*print_symbol)(FILE *, struct symbol *, const char *, void *); | ||
87 | void (*print_comment)(FILE *, const char *, void *); | ||
88 | }; | ||
89 | |||
95 | /* confdata.c and expr.c */ | 90 | /* confdata.c and expr.c */ |
96 | static inline void xfwrite(const void *str, size_t len, size_t count, FILE *out) | 91 | static inline void xfwrite(const void *str, size_t len, size_t count, FILE *out) |
97 | { | 92 | { |
@@ -99,9 +94,6 @@ static inline void xfwrite(const void *str, size_t len, size_t count, FILE *out) | |||
99 | fprintf(stderr, "\nError in writing or end of file.\n"); | 94 | fprintf(stderr, "\nError in writing or end of file.\n"); |
100 | } | 95 | } |
101 | 96 | ||
102 | /* kconfig_load.c */ | ||
103 | void kconfig_load(void); | ||
104 | |||
105 | /* menu.c */ | 97 | /* menu.c */ |
106 | void _menu_init(void); | 98 | void _menu_init(void); |
107 | void menu_warn(struct menu *menu, const char *fmt, ...); | 99 | void menu_warn(struct menu *menu, const char *fmt, ...); |