base/config/kconfig/lkc.h File Reference

#include "expr.h"
#include "lkc_proto.h"
#include "lkc_defs.h"

Include dependency graph for lkc.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define P(name, type, arg)   extern type (*name ## _p) arg
#define SRCTREE   "srctree"

Functions

int zconfparse (void)
void zconfdump (FILE *out)
void zconf_starthelp (void)
FILE * zconf_fopen (const char *name)
void zconf_initscan (const char *name)
void zconf_nextfile (const char *name)
int zconf_lineno (void)
char * zconf_curname (void)
char * conf_get_default_confname (void)
void kconfig_load (void)
void menu_init (void)
void menu_add_menu (void)
void menu_end_menu (void)
void menu_add_entry (struct symbol *sym)
void menu_end_entry (void)
void menu_add_dep (struct expr *dep)
propertymenu_add_prop (enum prop_type type, char *prompt, struct expr *expr, struct expr *dep)
void menu_add_prompt (enum prop_type type, char *prompt, struct expr *dep)
void menu_add_expr (enum prop_type type, struct expr *expr, struct expr *dep)
void menu_add_symbol (enum prop_type type, struct symbol *sym, struct expr *dep)
void menu_finalize (struct menu *parent)
void menu_set_type (int type)
filefile_lookup (const char *name)
int file_write_dep (const char *name)
void sym_init (void)
void sym_clear_all_valid (void)
void sym_set_changed (struct symbol *sym)
symbolsym_check_deps (struct symbol *sym)
propertyprop_alloc (enum prop_type type, struct symbol *sym)
symbolprop_get_symbol (struct property *prop)
tristate sym_get_tristate_value (struct symbol *sym)
symbolsym_get_choice_value (struct symbol *sym)
bool sym_set_choice_value (struct symbol *ch, struct symbol *chval)
bool sym_is_choice (struct symbol *sym)
bool sym_is_choice_value (struct symbol *sym)
bool sym_is_optional (struct symbol *sym)
bool sym_has_value (struct symbol *sym)

Variables

int zconfdebug
const char conf_def_filename []
char conf_filename []
menucurrent_entry
menucurrent_menu


Define Documentation

#define P name,
type,
arg   )     extern type (*name ## _p) arg
 

Definition at line 19 of file lkc.h.

#define SRCTREE   "srctree"
 

Definition at line 24 of file lkc.h.

Referenced by conf_get_default_confname(), and main().


Function Documentation

char* conf_get_default_confname void   ) 
 

Definition at line 54 of file confdata.c.

References conf_defname, conf_expand_value(), and SRCTREE.

Referenced by main().

Here is the call graph for this function:

struct file* file_lookup const char *  name  ) 
 

Definition at line 358 of file menu.c.

References file_list, and file::next.

int file_write_dep const char *  name  ) 
 

void kconfig_load void   ) 
 

Definition at line 11 of file kconfig_load.c.

Referenced by main().

void menu_add_dep struct expr dep  ) 
 

Definition at line 82 of file menu.c.

References current_entry, menu::dep, expr_alloc_and(), and menu_check_dep().

Here is the call graph for this function:

void menu_add_entry struct symbol sym  ) 
 

Definition at line 25 of file menu.c.

References current_entry, current_file, current_menu, menu::file, last_entry_ptr, file::lineno, menu::next, and zconf_lineno().

Here is the call graph for this function:

void menu_add_expr enum prop_type  type,
struct expr expr,
struct expr dep
 

Definition at line 126 of file menu.c.

References menu_add_prop().

Here is the call graph for this function:

void menu_add_menu void   ) 
 

Definition at line 45 of file menu.c.

References current_entry, current_menu, last_entry_ptr, and menu::list.

void menu_add_prompt enum prop_type  type,
char *  prompt,
struct expr dep
 

Definition at line 121 of file menu.c.

References menu_add_prop().

Here is the call graph for this function:

struct property* menu_add_prop enum prop_type  type,
char *  prompt,
struct expr expr,
struct expr dep
 

Definition at line 102 of file menu.c.

References current_entry, menu::file, menu::lineno, menu_check_dep(), file::name, menu::prompt, prop_alloc(), and menu::sym.

Referenced by conf_parse(), menu_add_expr(), menu_add_prompt(), and menu_add_symbol().

Here is the call graph for this function:

void menu_add_symbol enum prop_type  type,
struct symbol sym,
struct expr dep
 

Definition at line 131 of file menu.c.

References expr_alloc_symbol(), and menu_add_prop().

Referenced by menu_finalize().

Here is the call graph for this function:

void menu_end_entry void   ) 
 

Definition at line 41 of file menu.c.

void menu_end_menu void   ) 
 

Definition at line 51 of file menu.c.

References current_menu, last_entry_ptr, menu::next, and menu::parent.

void menu_finalize struct menu parent  ) 
 

Definition at line 136 of file menu.c.

References current_entry, menu::dep, E_CHOICE, E_SYMBOL, E_UNEQUAL, expr_value::expr, expr_alloc_and(), expr_alloc_one(), expr_alloc_or(), expr_alloc_symbol(), expr_contains_symbol(), expr_copy(), expr_depends_symbol(), expr_eliminate_dups(), expr_eliminate_eq(), expr_free(), expr_is_yes(), expr_trans_bool(), expr_trans_compare(), expr_transform(), menu::file, symbol::flags, menu::lineno, menu::list, menu_add_symbol(), menu_set_type(), file::name, menu::next, P_CHOICE, P_DEFAULT, P_PROMPT, P_RANGE, P_SELECT, menu::parent, menu::prompt, prop_get_symbol(), S_BOOLEAN, S_HEX, S_INT, S_STRING, S_TRISTATE, S_UNKNOWN, menu::sym, sym_get_choice_prop(), sym_is_choice(), sym_is_optional(), sym_string_valid(), SYMBOL_CHOICEVAL, symbol_mod, SYMBOL_WARNED, and property::visible.

Referenced by conf_parse().

Here is the call graph for this function:

void menu_init void   ) 
 

Definition at line 19 of file menu.c.

References current_entry, current_menu, last_entry_ptr, menu::list, and rootmenu.

Referenced by conf_parse().

void menu_set_type int  type  ) 
 

Definition at line 87 of file menu.c.

References current_entry, menu::file, menu::lineno, file::name, S_UNKNOWN, menu::sym, sym_type_name(), and symbol::type.

Referenced by menu_finalize().

Here is the call graph for this function:

struct property* prop_alloc enum prop_type  type,
struct symbol sym
 

Definition at line 727 of file symbol.c.

References current_file, file::lineno, property::next, symbol::prop, and zconf_lineno().

Referenced by menu_add_prop(), and sym_add_default().

Here is the call graph for this function:

struct symbol* prop_get_symbol struct property prop  ) 
 

Definition at line 749 of file symbol.c.

References E_CHOICE, E_SYMBOL, property::expr, and expr::type.

Referenced by conf_read(), menu_finalize(), sym_calc_choice(), sym_calc_value(), and sym_set_tristate_value().

struct symbol * sym_check_deps struct symbol sym  ) 
 

Definition at line 691 of file symbol.c.

References expr_value::expr, symbol::flags, symbol::name, property::next, out, P_CHOICE, P_DEFAULT, symbol::prop, symbol::rev_dep, sym_check_expr_deps(), sym_is_choice(), SYMBOL_CHECK, SYMBOL_CHECK_DONE, and SYMBOL_CHECKED.

Here is the call graph for this function:

void sym_clear_all_valid void   ) 
 

Definition at line 322 of file symbol.c.

References for_all_symbols, sym_change_count, and SYMBOL_VALID.

Referenced by conf_write(), sym_set_string_value(), and sym_set_tristate_value().

struct symbol* sym_get_choice_value struct symbol sym  )  [inline, static]
 

Definition at line 79 of file lkc.h.

Referenced by build_conf(), conf_choice(), and fill_row().

tristate sym_get_tristate_value struct symbol sym  )  [inline, static]
 

Definition at line 73 of file lkc.h.

References tristate.

Referenced by build_conf(), change_sym_value(), check_conf(), conf(), conf_choice(), conf_sym(), conf_write(), fill_row(), menu_is_visible(), sym_get_string_value(), sym_set_tristate_value(), sym_toggle_tristate_value(), and toggle_sym_value().

bool sym_has_value struct symbol sym  )  [inline, static]
 

Definition at line 104 of file lkc.h.

References symbol::flags, and SYMBOL_NEW.

Referenced by build_conf(), check_conf(), conf_askvalue(), conf_choice(), conf_read(), and sym_calc_value().

void sym_init void   ) 
 

Definition at line 42 of file symbol.c.

References S_STRING, sym_add_default(), sym_lookup(), and SYMBOL_AUTO.

Referenced by conf_parse().

Here is the call graph for this function:

bool sym_is_choice struct symbol sym  )  [inline, static]
 

Definition at line 89 of file lkc.h.

References symbol::flags, and SYMBOL_CHOICE.

Referenced by build_conf(), check_conf(), conf(), conf_read(), fill_row(), menu_finalize(), print_symbol(), sym_calc_value(), and sym_check_deps().

bool sym_is_choice_value struct symbol sym  )  [inline, static]
 

Definition at line 94 of file lkc.h.

References symbol::flags, and SYMBOL_CHOICEVAL.

Referenced by build_conf(), conf_read(), sym_calc_value(), sym_calc_visibility(), sym_get_type(), sym_set_tristate_value(), and sym_tristate_within_range().

bool sym_is_optional struct symbol sym  )  [inline, static]
 

Definition at line 99 of file lkc.h.

References symbol::flags, and SYMBOL_OPTIONAL.

Referenced by menu_finalize().

void sym_set_changed struct symbol sym  ) 
 

Definition at line 332 of file symbol.c.

References symbol::flags, MENU_CHANGED, property::next, symbol::prop, and SYMBOL_CHANGED.

Referenced by sym_calc_value(), sym_calc_visibility(), sym_set_all_changed(), sym_set_string_value(), and sym_set_tristate_value().

bool sym_set_choice_value struct symbol ch,
struct symbol chval
[inline, static]
 

Definition at line 84 of file lkc.h.

References sym_set_tristate_value(), and yes.

Referenced by conf_choice().

Here is the call graph for this function:

char* zconf_curname void   ) 
 

Referenced by zconferror(), and zconfprint().

FILE* zconf_fopen const char *  name  ) 
 

Referenced by conf_read().

void zconf_initscan const char *  name  ) 
 

Referenced by conf_parse().

int zconf_lineno void   ) 
 

Referenced by menu_add_entry(), prop_alloc(), zconferror(), and zconfprint().

void zconf_nextfile const char *  name  ) 
 

void zconf_starthelp void   ) 
 

void zconfdump FILE *  out  ) 
 

Definition at line 2073 of file zconf.tab.c.

References expr_fprint(), expr_is_yes(), menu::list, out, P_COMMENT, P_MENU, print_quoted_string(), print_symbol(), and rootmenu.

Here is the call graph for this function:

int zconfparse void   ) 
 

Referenced by conf_parse().


Variable Documentation

const char conf_def_filename[]
 

Definition at line 16 of file confdata.c.

Referenced by conf_write().

char conf_filename[]
 

struct menu* current_entry
 

Definition at line 13 of file menu.c.

Referenced by menu_add_dep(), menu_add_entry(), menu_add_menu(), menu_add_prop(), menu_finalize(), menu_init(), and menu_set_type().

struct menu* current_menu
 

Definition at line 13 of file menu.c.

Referenced by menu_add_entry(), menu_add_menu(), menu_end_menu(), menu_init(), and zconf_endtoken().

int zconfdebug
 


Generated on Thu Nov 20 11:51:13 2008 for RTAI API by doxygen 1.3.8