diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-10-28 14:09:12 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-10-28 14:09:12 +0000 |
commit | e7220316405bee3cba9de6d781403124525923be (patch) | |
tree | 49f941aa07281d5318170b2ffaef3f71eb7cb96f /scripts/config/expr.h | |
parent | 41f2b5ed5fc1c36aa0489b39afd4f3120b8e5338 (diff) |
scripts/config: merge fixes for various issues, including recursive dependency detection/handling (patch by mbm)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28658 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts/config/expr.h')
-rw-r--r-- | scripts/config/expr.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/config/expr.h b/scripts/config/expr.h index ae79d8fad1..f6690a20e2 100644 --- a/scripts/config/expr.h +++ b/scripts/config/expr.h @@ -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 |