diff options
Diffstat (limited to 'scripts/kconfig/lkc.h')
-rw-r--r-- | scripts/kconfig/lkc.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/scripts/kconfig/lkc.h b/scripts/kconfig/lkc.h index ce6549cdaccf..753cdbd7b805 100644 --- a/scripts/kconfig/lkc.h +++ b/scripts/kconfig/lkc.h | |||
@@ -31,12 +31,18 @@ extern "C" { | |||
31 | 31 | ||
32 | #define SRCTREE "srctree" | 32 | #define SRCTREE "srctree" |
33 | 33 | ||
34 | #ifndef PACKAGE | ||
34 | #define PACKAGE "linux" | 35 | #define PACKAGE "linux" |
36 | #endif | ||
37 | |||
35 | #define LOCALEDIR "/usr/share/locale" | 38 | #define LOCALEDIR "/usr/share/locale" |
36 | 39 | ||
37 | #define _(text) gettext(text) | 40 | #define _(text) gettext(text) |
38 | #define N_(text) (text) | 41 | #define N_(text) (text) |
39 | 42 | ||
43 | #ifndef CONFIG_ | ||
44 | #define CONFIG_ "CONFIG_" | ||
45 | #endif | ||
40 | 46 | ||
41 | #define TF_COMMAND 0x0001 | 47 | #define TF_COMMAND 0x0001 |
42 | #define TF_PARAM 0x0002 | 48 | #define TF_PARAM 0x0002 |
@@ -70,7 +76,10 @@ FILE *zconf_fopen(const char *name); | |||
70 | void zconf_initscan(const char *name); | 76 | void zconf_initscan(const char *name); |
71 | void zconf_nextfile(const char *name); | 77 | void zconf_nextfile(const char *name); |
72 | int zconf_lineno(void); | 78 | int zconf_lineno(void); |
73 | char *zconf_curname(void); | 79 | const char *zconf_curname(void); |
80 | |||
81 | /* conf.c */ | ||
82 | void xfgets(char *str, int size, FILE *in); | ||
74 | 83 | ||
75 | /* confdata.c */ | 84 | /* confdata.c */ |
76 | const char *conf_get_configname(void); | 85 | const char *conf_get_configname(void); |
@@ -80,6 +89,13 @@ void sym_set_change_count(int count); | |||
80 | void sym_add_change_count(int count); | 89 | void sym_add_change_count(int count); |
81 | void conf_set_all_new_symbols(enum conf_def_mode mode); | 90 | void conf_set_all_new_symbols(enum conf_def_mode mode); |
82 | 91 | ||
92 | /* confdata.c and expr.c */ | ||
93 | static inline void xfwrite(const void *str, size_t len, size_t count, FILE *out) | ||
94 | { | ||
95 | if (fwrite(str, len, count, out) < count) | ||
96 | fprintf(stderr, "\nError in writing or end of file.\n"); | ||
97 | } | ||
98 | |||
83 | /* kconfig_load.c */ | 99 | /* kconfig_load.c */ |
84 | void kconfig_load(void); | 100 | void kconfig_load(void); |
85 | 101 | ||
@@ -126,6 +142,8 @@ void sym_init(void); | |||
126 | void sym_clear_all_valid(void); | 142 | void sym_clear_all_valid(void); |
127 | void sym_set_all_changed(void); | 143 | void sym_set_all_changed(void); |
128 | void sym_set_changed(struct symbol *sym); | 144 | void sym_set_changed(struct symbol *sym); |
145 | struct symbol *sym_choice_default(struct symbol *sym); | ||
146 | const char *sym_get_string_default(struct symbol *sym); | ||
129 | struct symbol *sym_check_deps(struct symbol *sym); | 147 | struct symbol *sym_check_deps(struct symbol *sym); |
130 | struct property *prop_alloc(enum prop_type type, struct symbol *sym); | 148 | struct property *prop_alloc(enum prop_type type, struct symbol *sym); |
131 | struct symbol *prop_get_symbol(struct property *prop); | 149 | struct symbol *prop_get_symbol(struct property *prop); |