summaryrefslogtreecommitdiff
path: root/scripts/kconfig/lkc.h
authorkergoth <kergoth>2003-01-16 18:04:11 (UTC)
committer kergoth <kergoth>2003-01-16 18:04:11 (UTC)
commit3904d85eac20dfd21cf2a3245977f9946865fd92 (patch) (unidiff)
tree8d5b2217c1b54a0c439815ec02db3f5235c99daa /scripts/kconfig/lkc.h
parent0eec393ef2dd8b43db96c86e80e307f73a771fae (diff)
downloadopie-3904d85eac20dfd21cf2a3245977f9946865fd92.zip
opie-3904d85eac20dfd21cf2a3245977f9946865fd92.tar.gz
opie-3904d85eac20dfd21cf2a3245977f9946865fd92.tar.bz2
Update LinuxKernelConf to 1.3, latest available.
Diffstat (limited to 'scripts/kconfig/lkc.h') (more/less context) (show whitespace changes)
-rw-r--r--scripts/kconfig/lkc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/kconfig/lkc.h b/scripts/kconfig/lkc.h
index 688945b..cdd04a9 100644
--- a/scripts/kconfig/lkc.h
+++ b/scripts/kconfig/lkc.h
@@ -1,87 +1,90 @@
1/* 1/*
2 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 2 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
3 * Released under the terms of the GNU GPL v2.0. 3 * Released under the terms of the GNU GPL v2.0.
4 */ 4 */
5 5
6#ifndef LKC_H 6#ifndef LKC_H
7#define LKC_H 7#define LKC_H
8 8
9#include "expr.h" 9#include "expr.h"
10 10
11#ifdef __cplusplus 11#ifdef __cplusplus
12extern "C" { 12extern "C" {
13#endif 13#endif
14 14
15#ifdef LKC_DIRECT_LINK 15#ifdef LKC_DIRECT_LINK
16 #define P(name,type,arg)extern type name arg 16 #define P(name,type,arg)extern type name arg
17#else 17#else
18#include "lkc_defs.h" 18#include "lkc_defs.h"
19 #define P(name,type,arg)extern type (*name ## _p) arg 19 #define P(name,type,arg)extern type (*name ## _p) arg
20#endif 20#endif
21#include "lkc_proto.h" 21#include "lkc_proto.h"
22#undef P 22#undef P
23 23
24void symbol_end(char *help); 24#define SRCTREE "srctree"
25
25int zconfparse(void); 26int zconfparse(void);
26void zconfdump(FILE *out); 27void zconfdump(FILE *out);
27 28
28extern int zconfdebug; 29extern int zconfdebug;
29void zconf_starthelp(void); 30void zconf_starthelp(void);
31FILE *zconf_fopen(const char *name);
30void zconf_initscan(const char *name); 32void zconf_initscan(const char *name);
31void zconf_nextfile(const char *name); 33void zconf_nextfile(const char *name);
32int zconf_lineno(void); 34int zconf_lineno(void);
33char *zconf_curname(void); 35char *zconf_curname(void);
34 36
35/* confdata.c */ 37/* confdata.c */
36extern const char conf_def_filename[]; 38extern const char conf_def_filename[];
37extern char conf_filename[]; 39extern char conf_filename[];
38 40
39char *conf_get_default_confname(void); 41char *conf_get_default_confname(void);
40 42
41/* kconfig_load.c */ 43/* kconfig_load.c */
42void kconfig_load(void); 44void kconfig_load(void);
43 45
44/* menu.c */ 46/* menu.c */
45void menu_init(void); 47void menu_init(void);
46void menu_add_menu(void); 48void menu_add_menu(void);
47void menu_end_menu(void); 49void menu_end_menu(void);
48void menu_add_entry(struct symbol *sym); 50void menu_add_entry(struct symbol *sym);
49void menu_end_entry(void); 51void menu_end_entry(void);
50struct property *create_prop(enum prop_type type); 52struct property *create_prop(enum prop_type type);
51void menu_add_dep(struct expr *dep); 53void menu_add_dep(struct expr *dep);
52struct property *menu_add_prop(int token, char *prompt, struct symbol *def, struct expr *dep); 54struct property *menu_add_prop(int token, char *prompt, struct symbol *def, struct expr *dep);
53void menu_finalize(struct menu *parent); 55void menu_finalize(struct menu *parent);
54void menu_set_type(int type); 56void menu_set_type(int type);
55struct file *file_lookup(const char *name); 57struct file *file_lookup(const char *name);
56int file_write_dep(const char *name); 58int file_write_dep(const char *name);
57 59
58extern struct menu *current_entry; 60extern struct menu *current_entry;
59extern struct menu *current_menu; 61extern struct menu *current_menu;
60 62
61/* symbol.c */ 63/* symbol.c */
62void sym_init(void); 64void sym_init(void);
63void sym_clear_all_valid(void); 65void sym_clear_all_valid(void);
66void sym_set_changed(struct symbol *sym);
64 67
65static inline tristate sym_get_tristate_value(struct symbol *sym) 68static inline tristate sym_get_tristate_value(struct symbol *sym)
66{ 69{
67 return S_TRI(sym->curr); 70 return S_TRI(sym->curr);
68} 71}
69 72
70 73
71static inline struct symbol *sym_get_choice_value(struct symbol *sym) 74static inline struct symbol *sym_get_choice_value(struct symbol *sym)
72{ 75{
73 return (struct symbol *)S_VAL(sym->curr); 76 return (struct symbol *)S_VAL(sym->curr);
74} 77}
75 78
76static inline bool sym_set_choice_value(struct symbol *ch, struct symbol *chval) 79static inline bool sym_set_choice_value(struct symbol *ch, struct symbol *chval)
77{ 80{
78 return sym_set_tristate_value(chval, yes); 81 return sym_set_tristate_value(chval, yes);
79} 82}
80 83
81static inline bool sym_is_choice(struct symbol *sym) 84static inline bool sym_is_choice(struct symbol *sym)
82{ 85{
83 return sym->flags & SYMBOL_CHOICE ? true : false; 86 return sym->flags & SYMBOL_CHOICE ? true : false;
84} 87}
85 88
86static inline bool sym_is_choice_value(struct symbol *sym) 89static inline bool sym_is_choice_value(struct symbol *sym)
87{ 90{