hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/scripts/kconfig/expr.h
....@@ -1,6 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0 */
12 /*
23 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
3
- * Released under the terms of the GNU GPL v2.0.
44 */
55
66 #ifndef EXPR_H
....@@ -62,7 +62,7 @@
6262 };
6363
6464 enum symbol_type {
65
- S_UNKNOWN, S_BOOLEAN, S_TRISTATE, S_INT, S_HEX, S_STRING, S_OTHER
65
+ S_UNKNOWN, S_BOOLEAN, S_TRISTATE, S_INT, S_HEX, S_STRING
6666 };
6767
6868 /* enum values are used as index to symbol.def[] */
....@@ -131,7 +131,7 @@
131131 struct expr_value implied;
132132 };
133133
134
-#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)
134
+#define for_all_symbols(i, sym) for (i = 0; i < SYMBOL_HASHSIZE; i++) for (sym = symbol_hash[i]; sym; sym = sym->next)
135135
136136 #define SYMBOL_CONST 0x0001 /* symbol is const */
137137 #define SYMBOL_CHECK 0x0008 /* used during dependency checking */
....@@ -173,7 +173,7 @@
173173 * int "BAZ Value"
174174 * range 1..255
175175 *
176
- * Please, also check zconf.y:print_symbol() when modifying the
176
+ * Please, also check parser.y:print_symbol() when modifying the
177177 * list of property types!
178178 */
179179 enum prop_type {
....@@ -191,7 +191,6 @@
191191
192192 struct property {
193193 struct property *next; /* next property - null if last */
194
- struct symbol *sym; /* the symbol for which the property is associated */
195194 enum prop_type type; /* type of property */
196195 const char *text; /* the prompt value - P_PROMPT, P_MENU, P_COMMENT */
197196 struct expr_value visible;
....@@ -301,6 +300,7 @@
301300 struct expr *expr_copy(const struct expr *org);
302301 void expr_free(struct expr *e);
303302 void expr_eliminate_eq(struct expr **ep1, struct expr **ep2);
303
+int expr_eq(struct expr *e1, struct expr *e2);
304304 tristate expr_calc_value(struct expr *e);
305305 struct expr *expr_trans_bool(struct expr *e);
306306 struct expr *expr_eliminate_dups(struct expr *e);