projects
/
carl9170fw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kconfig: Document automatic submenu creation code
[carl9170fw.git]
/
config
/
expr.c
diff --git
a/config/expr.c
b/config/expr.c
index cbf4996dd9c1045ecc7ffa66a9ec79edd99b1038..ee23ebc881a67e08f592606c5e1d53929eb362d4 100644
(file)
--- a/
config/expr.c
+++ b/
config/expr.c
@@
-113,7
+113,7
@@
void expr_free(struct expr *e)
break;
case E_NOT:
expr_free(e->left.expr);
break;
case E_NOT:
expr_free(e->left.expr);
-
return
;
+
break
;
case E_EQUAL:
case E_GEQ:
case E_GTH:
case E_EQUAL:
case E_GEQ:
case E_GTH:
@@
-893,7
+893,10
@@
static enum string_value_kind expr_parse_string(const char *str,
switch (type) {
case S_BOOLEAN:
case S_TRISTATE:
switch (type) {
case S_BOOLEAN:
case S_TRISTATE:
- return k_string;
+ val->s = !strcmp(str, "n") ? 0 :
+ !strcmp(str, "m") ? 1 :
+ !strcmp(str, "y") ? 2 : -1;
+ return k_signed;
case S_INT:
val->s = strtoll(str, &tail, 10);
kind = k_signed;
case S_INT:
val->s = strtoll(str, &tail, 10);
kind = k_signed;