aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/lkc.h
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kconfig/lkc.h')
-rw-r--r--scripts/kconfig/lkc.h20
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);
70void zconf_initscan(const char *name); 76void zconf_initscan(const char *name);
71void zconf_nextfile(const char *name); 77void zconf_nextfile(const char *name);
72int zconf_lineno(void); 78int zconf_lineno(void);
73char *zconf_curname(void); 79const char *zconf_curname(void);
80
81/* conf.c */
82void xfgets(char *str, int size, FILE *in);
74 83
75/* confdata.c */ 84/* confdata.c */
76const char *conf_get_configname(void); 85const char *conf_get_configname(void);
@@ -80,6 +89,13 @@ void sym_set_change_count(int count);
80void sym_add_change_count(int count); 89void sym_add_change_count(int count);
81void conf_set_all_new_symbols(enum conf_def_mode mode); 90void conf_set_all_new_symbols(enum conf_def_mode mode);
82 91
92/* confdata.c and expr.c */
93static 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 */
84void kconfig_load(void); 100void kconfig_load(void);
85 101
@@ -126,6 +142,8 @@ void sym_init(void);
126void sym_clear_all_valid(void); 142void sym_clear_all_valid(void);
127void sym_set_all_changed(void); 143void sym_set_all_changed(void);
128void sym_set_changed(struct symbol *sym); 144void sym_set_changed(struct symbol *sym);
145struct symbol *sym_choice_default(struct symbol *sym);
146const char *sym_get_string_default(struct symbol *sym);
129struct symbol *sym_check_deps(struct symbol *sym); 147struct symbol *sym_check_deps(struct symbol *sym);
130struct property *prop_alloc(enum prop_type type, struct symbol *sym); 148struct property *prop_alloc(enum prop_type type, struct symbol *sym);
131struct symbol *prop_get_symbol(struct property *prop); 149struct symbol *prop_get_symbol(struct property *prop);