Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
symbol.c File Reference
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <regex.h>
#include <sys/utsname.h>
#include "lkc.h"

Go to the source code of this file.

Data Structures

struct  dep_stack
 

Functions

void sym_init (void)
 
enum symbol_type sym_get_type (struct symbol *sym)
 
const charsym_type_name (enum symbol_type type)
 
struct propertysym_get_choice_prop (struct symbol *sym)
 
struct propertysym_get_env_prop (struct symbol *sym)
 
struct propertysym_get_default_prop (struct symbol *sym)
 
struct symbolsym_choice_default (struct symbol *sym)
 
void sym_calc_value (struct symbol *sym)
 
void sym_clear_all_valid (void)
 
void sym_set_changed (struct symbol *sym)
 
void sym_set_all_changed (void)
 
bool sym_tristate_within_range (struct symbol *sym, tristate val)
 
bool sym_set_tristate_value (struct symbol *sym, tristate val)
 
tristate sym_toggle_tristate_value (struct symbol *sym)
 
bool sym_string_valid (struct symbol *sym, const char *str)
 
bool sym_string_within_range (struct symbol *sym, const char *str)
 
bool sym_set_string_value (struct symbol *sym, const char *newval)
 
const charsym_get_string_default (struct symbol *sym)
 
const charsym_get_string_value (struct symbol *sym)
 
bool sym_is_changable (struct symbol *sym)
 
struct symbolsym_lookup (const char *name, int flags)
 
struct symbolsym_find (const char *name)
 
const charsym_expand_string_value (const char *in)
 
const charsym_escape_string_value (const char *in)
 
struct symbol ** sym_re_search (const char *pattern)
 
struct symbolsym_check_deps (struct symbol *sym)
 
struct propertyprop_alloc (enum prop_type type, struct symbol *sym)
 
struct symbolprop_get_symbol (struct property *prop)
 
const charprop_get_type_name (enum prop_type type)
 

Variables

struct symbol symbol_yes
 
struct symbol symbol_mod
 
struct symbol symbol_no
 
struct symbol symbol_empty
 
struct symbolsym_defconfig_list
 
struct symbolmodules_sym
 
tristate modules_val
 
struct exprsym_env_list
 

Function Documentation

struct property* prop_alloc ( enum prop_type  type,
struct symbol sym 
)
read

Definition at line 1226 of file symbol.c.

struct symbol* prop_get_symbol ( struct property prop)
read

Definition at line 1248 of file symbol.c.

const char* prop_get_type_name ( enum prop_type  type)

Definition at line 1256 of file symbol.c.

void sym_calc_value ( struct symbol sym)

Definition at line 292 of file symbol.c.

struct symbol* sym_check_deps ( struct symbol sym)
read

Definition at line 1192 of file symbol.c.

struct symbol* sym_choice_default ( struct symbol sym)
read

Definition at line 234 of file symbol.c.

void sym_clear_all_valid ( void  )

Definition at line 430 of file symbol.c.

const char* sym_escape_string_value ( const char in)

Definition at line 903 of file symbol.c.

const char* sym_expand_string_value ( const char in)

Definition at line 859 of file symbol.c.

struct symbol* sym_find ( const char name)
read

Definition at line 827 of file symbol.c.

struct property* sym_get_choice_prop ( struct symbol sym)
read

Definition at line 97 of file symbol.c.

struct property* sym_get_default_prop ( struct symbol sym)
read

Definition at line 115 of file symbol.c.

struct property* sym_get_env_prop ( struct symbol sym)
read

Definition at line 106 of file symbol.c.

const char* sym_get_string_default ( struct symbol sym)

Definition at line 681 of file symbol.c.

const char* sym_get_string_value ( struct symbol sym)

Definition at line 748 of file symbol.c.

enum symbol_type sym_get_type ( struct symbol sym)

Definition at line 63 of file symbol.c.

void sym_init ( void  )

Definition at line 45 of file symbol.c.

bool sym_is_changable ( struct symbol sym)

Definition at line 772 of file symbol.c.

struct symbol* sym_lookup ( const char name,
int  flags 
)
read

Definition at line 786 of file symbol.c.

struct symbol** sym_re_search ( const char pattern)
read

Definition at line 946 of file symbol.c.

void sym_set_all_changed ( void  )

Definition at line 453 of file symbol.c.

void sym_set_changed ( struct symbol sym)

Definition at line 442 of file symbol.c.

bool sym_set_string_value ( struct symbol sym,
const char newval 
)

Definition at line 625 of file symbol.c.

bool sym_set_tristate_value ( struct symbol sym,
tristate  val 
)

Definition at line 481 of file symbol.c.

bool sym_string_valid ( struct symbol sym,
const char str 
)

Definition at line 540 of file symbol.c.

bool sym_string_within_range ( struct symbol sym,
const char str 
)

Definition at line 583 of file symbol.c.

tristate sym_toggle_tristate_value ( struct symbol sym)

Definition at line 517 of file symbol.c.

bool sym_tristate_within_range ( struct symbol sym,
tristate  val 
)

Definition at line 462 of file symbol.c.

const char* sym_type_name ( enum symbol_type  type)

Definition at line 76 of file symbol.c.

Variable Documentation

struct symbol* modules_sym

Definition at line 33 of file symbol.c.

tristate modules_val

Definition at line 34 of file symbol.c.

struct symbol* sym_defconfig_list

Definition at line 32 of file symbol.c.

struct expr* sym_env_list

Definition at line 36 of file symbol.c.

struct symbol symbol_empty
Initial value:
= {
.name = "",
.curr = { "", no },
.flags = SYMBOL_VALID,
}

Definition at line 26 of file symbol.c.

struct symbol symbol_mod
Initial value:
= {
.name = "m",
.curr = { "m", mod },
}

Definition at line 18 of file symbol.c.

struct symbol symbol_no
Initial value:
= {
.name = "n",
.curr = { "n", no },
}

Definition at line 22 of file symbol.c.

struct symbol symbol_yes
Initial value:
= {
.name = "y",
.curr = { "y", yes },
}

Definition at line 14 of file symbol.c.