scripts/config: merge fixes for various issues, including recursive dependency detection/handling (patch by mbm)

SVN-Revision: 28658
This commit is contained in:
Felix Fietkau
2011-10-28 14:09:12 +00:00
parent ab29084cdb
commit 5e48d47dfe
7 changed files with 82 additions and 40 deletions

View File

@@ -77,7 +77,7 @@ struct symbol {
struct expr_value rev_dep_inv;
};
#define for_all_symbols(i, sym) for (i = 0; i < 257; i++) for (sym = symbol_hash[i]; sym; sym = sym->next) if (sym->type != S_OTHER)
#define for_all_symbols(i, sym) for (i = 0; i < SYMBOL_HASHSIZE; i++) for (sym = symbol_hash[i]; sym; sym = sym->next) if (sym->type != S_OTHER)
#define SYMBOL_YES 0x0001
#define SYMBOL_MOD 0x0002
@@ -98,7 +98,6 @@ struct symbol {
#define SYMBOL_MAXLENGTH 256
#define SYMBOL_HASHSIZE 257
#define SYMBOL_HASHMASK 0xff
enum prop_type {
P_UNKNOWN, P_PROMPT, P_COMMENT, P_MENU, P_DEFAULT, P_CHOICE, P_DESELECT, P_SELECT, P_RANGE, P_RESET