.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0 */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> |
---|
3 | | - * Released under the terms of the GNU GPL v2.0. |
---|
4 | 4 | */ |
---|
5 | 5 | |
---|
6 | 6 | #ifndef EXPR_H |
---|
.. | .. |
---|
62 | 62 | }; |
---|
63 | 63 | |
---|
64 | 64 | 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 |
---|
66 | 66 | }; |
---|
67 | 67 | |
---|
68 | 68 | /* enum values are used as index to symbol.def[] */ |
---|
.. | .. |
---|
131 | 131 | struct expr_value implied; |
---|
132 | 132 | }; |
---|
133 | 133 | |
---|
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) |
---|
135 | 135 | |
---|
136 | 136 | #define SYMBOL_CONST 0x0001 /* symbol is const */ |
---|
137 | 137 | #define SYMBOL_CHECK 0x0008 /* used during dependency checking */ |
---|
.. | .. |
---|
173 | 173 | * int "BAZ Value" |
---|
174 | 174 | * range 1..255 |
---|
175 | 175 | * |
---|
176 | | - * Please, also check zconf.y:print_symbol() when modifying the |
---|
| 176 | + * Please, also check parser.y:print_symbol() when modifying the |
---|
177 | 177 | * list of property types! |
---|
178 | 178 | */ |
---|
179 | 179 | enum prop_type { |
---|
.. | .. |
---|
191 | 191 | |
---|
192 | 192 | struct property { |
---|
193 | 193 | struct property *next; /* next property - null if last */ |
---|
194 | | - struct symbol *sym; /* the symbol for which the property is associated */ |
---|
195 | 194 | enum prop_type type; /* type of property */ |
---|
196 | 195 | const char *text; /* the prompt value - P_PROMPT, P_MENU, P_COMMENT */ |
---|
197 | 196 | struct expr_value visible; |
---|
.. | .. |
---|
301 | 300 | struct expr *expr_copy(const struct expr *org); |
---|
302 | 301 | void expr_free(struct expr *e); |
---|
303 | 302 | void expr_eliminate_eq(struct expr **ep1, struct expr **ep2); |
---|
| 303 | +int expr_eq(struct expr *e1, struct expr *e2); |
---|
304 | 304 | tristate expr_calc_value(struct expr *e); |
---|
305 | 305 | struct expr *expr_trans_bool(struct expr *e); |
---|
306 | 306 | struct expr *expr_eliminate_dups(struct expr *e); |
---|