diff options
| author | Masahiro Yamada <[email protected]> | 2024-09-08 12:43:17 +0000 |
|---|---|---|
| committer | Masahiro Yamada <[email protected]> | 2024-09-20 00:21:52 +0000 |
| commit | d607e0e7a8d2ea6565f11064d28b0825a95748aa (patch) | |
| tree | cdaac83b17634854044475976b3beae67d947529 /scripts/kconfig/expr.h | |
| parent | scripts: move hash function from scripts/kconfig/ to scripts/include/ (diff) | |
| download | kernel-d607e0e7a8d2ea6565f11064d28b0825a95748aa.tar.gz kernel-d607e0e7a8d2ea6565f11064d28b0825a95748aa.zip | |
kconfig: change some expr_*() functions to bool
This clarifies the behavior of these functions.
Signed-off-by: Masahiro Yamada <[email protected]>
Diffstat (limited to 'scripts/kconfig/expr.h')
| -rw-r--r-- | scripts/kconfig/expr.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/kconfig/expr.h b/scripts/kconfig/expr.h index c82d08bbd704..4ab7422ddbd8 100644 --- a/scripts/kconfig/expr.h +++ b/scripts/kconfig/expr.h @@ -278,11 +278,11 @@ struct expr *expr_alloc_or(struct expr *e1, struct expr *e2); struct expr *expr_copy(const struct expr *org); void expr_free(struct expr *e); void expr_eliminate_eq(struct expr **ep1, struct expr **ep2); -int expr_eq(struct expr *e1, struct expr *e2); +bool expr_eq(struct expr *e1, struct expr *e2); tristate expr_calc_value(struct expr *e); struct expr *expr_eliminate_dups(struct expr *e); struct expr *expr_transform(struct expr *e); -int expr_contains_symbol(struct expr *dep, struct symbol *sym); +bool expr_contains_symbol(struct expr *dep, struct symbol *sym); bool expr_depends_symbol(struct expr *dep, struct symbol *sym); struct expr *expr_trans_compare(struct expr *e, enum expr_type type, struct symbol *sym); @@ -292,7 +292,7 @@ void expr_gstr_print(const struct expr *e, struct gstr *gs); void expr_gstr_print_revdep(struct expr *e, struct gstr *gs, tristate pr_type, const char *title); -static inline int expr_is_yes(const struct expr *e) +static inline bool expr_is_yes(const struct expr *e) { return !e || (e->type == E_SYMBOL && e->left.sym == &symbol_yes); } |
