base/config/kconfig/conf.c File Reference

#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include <sys/stat.h>
#include "lkc.h"

Include dependency graph for conf.c:

Include dependency graph

Go to the source code of this file.

Defines

#define LKC_DIRECT_LINK

Enumerations

enum  {
  ask_all, ask_new, ask_silent, set_default,
  set_yes, set_mod, set_no, set_random
}

Functions

void conf (struct menu *menu)
void check_conf (struct menu *menu)
void strip (char *str)
void check_stdin (void)
void conf_askvalue (struct symbol *sym, const char *def)
int conf_string (struct menu *menu)
int conf_sym (struct menu *menu)
int conf_choice (struct menu *menu)
int main (int ac, char **av)

Variables

enum { ... }  input_mode
char * defconfig_file
int indent = 1
int valid_stdin = 1
int conf_cnt
char line [128]
menurootEntry
char nohelp_text [] = "Sorry, no help available for this option yet.\n"


Define Documentation

#define LKC_DIRECT_LINK
 

Definition at line 13 of file conf.c.


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
ask_all 
ask_new 
ask_silent 
set_default 
set_yes 
set_mod 
set_no 
set_random 
Definition at line 19 of file conf.c.


Function Documentation

void check_conf struct menu menu  )  [static]
 

Definition at line 461 of file conf.c.

References conf(), conf_cnt, menu::list, menu_get_parent_menu(), menu_is_visible(), mod, menu::next, rootEntry, menu::sym, sym_get_tristate_value(), sym_has_value(), sym_is_changable(), and sym_is_choice().

Referenced by conf(), and main().

Here is the call graph for this function:

void check_stdin void   )  [static]
 

Definition at line 56 of file conf.c.

References ask_silent, input_mode, and valid_stdin.

Referenced by conf_askvalue(), and conf_choice().

void conf struct menu menu  )  [static]
 

Definition at line 399 of file conf.c.

References ask_silent, check_conf(), conf(), conf_choice(), conf_string(), conf_sym(), indent, input_mode, menu::list, menu_get_prompt(), menu_is_visible(), mod, menu::next, P_COMMENT, P_MENU, menu::prompt, rootEntry, S_HEX, S_INT, S_STRING, menu::sym, and sym_is_choice().

Here is the call graph for this function:

void conf_askvalue struct symbol sym,
const char *  def
[static]
 

Definition at line 66 of file conf.c.

References ask_all, ask_new, ask_silent, check_stdin(), input_mode, line, mod, no, S_HEX, S_INT, S_STRING, S_TRISTATE, set_default, set_mod, set_no, set_random, set_yes, sym_get_type(), sym_has_value(), sym_is_changable(), sym_tristate_within_range(), symbol_type, tristate, and yes.

Referenced by conf_string(), and conf_sym().

Here is the call graph for this function:

int conf_choice struct menu menu  )  [static]
 

Definition at line 269 of file conf.c.

References ask_all, ask_new, ask_silent, check_stdin(), conf(), conf_sym(), symbol::help, indent, input_mode, line, menu::list, menu_get_prompt(), menu_is_visible(), mod, menu::next, no, nohelp_text, set_default, set_mod, set_no, set_random, set_yes, strip(), menu::sym, sym_calc_value(), sym_get_choice_value(), sym_get_tristate_value(), sym_get_type(), sym_has_value(), sym_is_changable(), sym_set_choice_value(), and yes.

Here is the call graph for this function:

void conf_string struct menu menu  ) 
 

Definition at line 161 of file conf.c.

References conf_askvalue(), symbol::help, indent, line, nohelp_text, menu::prompt, menu::sym, sym_get_string_value(), sym_set_string_value(), and property::text.

Referenced by conf().

Here is the call graph for this function:

int conf_sym struct menu menu  )  [static]
 

Definition at line 195 of file conf.c.

References conf_askvalue(), indent, line, mod, no, nohelp_text, menu::prompt, strip(), menu::sym, sym_get_string_value(), sym_get_tristate_value(), sym_get_type(), sym_set_tristate_value(), sym_tristate_within_range(), property::text, tristate, and yes.

Referenced by conf(), and conf_choice().

Here is the call graph for this function:

int main int  ac,
char **  av
 

Definition at line 485 of file conf.c.

References ask_all, ask_new, ask_silent, check_conf(), conf(), conf_cnt, conf_get_default_confname(), conf_parse(), conf_read(), conf_write(), defconfig_file, input_mode, rootEntry, rootmenu, set_default, set_mod, set_no, set_random, set_yes, and valid_stdin.

Here is the call graph for this function:

void strip char *  str  )  [static]
 

Definition at line 39 of file conf.c.

Referenced by conf_choice(), and conf_sym().


Variable Documentation

int conf_cnt [static]
 

Definition at line 33 of file conf.c.

Referenced by check_conf(), and main().

char* defconfig_file
 

Definition at line 29 of file conf.c.

Referenced by main().

int indent = 1 [static]
 

Definition at line 31 of file conf.c.

Referenced by conf(), conf_choice(), conf_string(), and conf_sym().

enum { ... } input_mode
 

Referenced by check_stdin(), conf(), conf_askvalue(), conf_choice(), and main().

char line[128] [static]
 

Definition at line 34 of file conf.c.

Referenced by conf_askvalue(), conf_choice(), conf_string(), and conf_sym().

char nohelp_text[] = "Sorry, no help available for this option yet.\n" [static]
 

Definition at line 37 of file conf.c.

Referenced by conf_choice(), conf_string(), and conf_sym().

struct menu* rootEntry [static]
 

Definition at line 35 of file conf.c.

Referenced by check_conf(), conf(), and main().

int valid_stdin = 1 [static]
 

Definition at line 32 of file conf.c.

Referenced by check_stdin(), and main().


Generated on Thu Nov 20 11:50:25 2008 for RTAI API by doxygen 1.3.8