summaryrefslogtreecommitdiff
path: root/scripts/kconfig/expr.h
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.ravnborg.org>2005-01-05 00:34:50 +0100
committerSam Ravnborg <sam@mars.ravnborg.org>2005-01-05 00:34:50 +0100
commit4adf8a9292326a48f39b67cc164168e7301b32fe (patch)
tree575b8d848fb5ead40cdd3d9e829165b5e128d855 /scripts/kconfig/expr.h
parentf7f364646ca46423e26d2185cfc8a68e91cef2f7 (diff)
kconfig: Redo and improve search support
Based on patch from: Roman Zippel <zippel@linux-m68k.org> The search functionality has been improved: - Restructured printout with more info - Include value of relevant symbols - Improved handling of corner cases - Generic search support moved to backend - ready to be utilised by xconfig and gconfig - Search functionality moved to fronend - not hardcoded in menubox.c Sample search (^$ used to limit search): Search for "^USB_STORAGE$": Symbol: USB_STORAGE [=y] Prompt: USB Mass Storage support Defined at drivers/usb/storage/Kconfig:7 Depends on: USB Location: -> Device Drivers -> USB Support Selects: SCSI Some symbols has loong "Depends on:" lines - for example FW_LOADER. Use arrows to scroll horisontally to see full value. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/kconfig/expr.h')
-rw-r--r--scripts/kconfig/expr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/kconfig/expr.h b/scripts/kconfig/expr.h
index cac51f6a86e8..7d39ff43e6e1 100644
--- a/scripts/kconfig/expr.h
+++ b/scripts/kconfig/expr.h
@@ -174,6 +174,8 @@ void expr_extract_eq(enum expr_type type, struct expr **ep, struct expr **ep1, s
struct expr *expr_trans_compare(struct expr *e, enum expr_type type, struct symbol *sym);
void expr_fprint(struct expr *e, FILE *out);
+struct gstr; /* forward */
+void expr_gstr_print(struct expr *e, struct gstr *gs);
static inline int expr_is_yes(struct expr *e)
{