symbol.c (a815752ac0ffdb910e92958d41d28f4fb28e5296) symbol.c (4356f4890792a678936c93c9196e8f7742e04535)
1/*
2 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
3 * Released under the terms of the GNU GPL v2.0.
4 */
5
6#include <ctype.h>
7#include <stdlib.h>
8#include <string.h>

--- 22 unchanged lines hidden (view full) ---

31};
32
33struct symbol *sym_defconfig_list;
34struct symbol *modules_sym;
35tristate modules_val;
36
37struct expr *sym_env_list;
38
1/*
2 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
3 * Released under the terms of the GNU GPL v2.0.
4 */
5
6#include <ctype.h>
7#include <stdlib.h>
8#include <string.h>

--- 22 unchanged lines hidden (view full) ---

31};
32
33struct symbol *sym_defconfig_list;
34struct symbol *modules_sym;
35tristate modules_val;
36
37struct expr *sym_env_list;
38
39void sym_add_default(struct symbol *sym, const char *def)
39static void sym_add_default(struct symbol *sym, const char *def)
40{
41 struct property *prop = prop_alloc(P_DEFAULT, sym);
42
43 prop->expr = expr_alloc_symbol(sym_lookup(def, SYMBOL_CONST));
44}
45
46void sym_init(void)
47{

--- 72 unchanged lines hidden (view full) ---

120 for_all_defaults(sym, prop) {
121 prop->visible.tri = expr_calc_value(prop->visible.expr);
122 if (prop->visible.tri != no)
123 return prop;
124 }
125 return NULL;
126}
127
40{
41 struct property *prop = prop_alloc(P_DEFAULT, sym);
42
43 prop->expr = expr_alloc_symbol(sym_lookup(def, SYMBOL_CONST));
44}
45
46void sym_init(void)
47{

--- 72 unchanged lines hidden (view full) ---

120 for_all_defaults(sym, prop) {
121 prop->visible.tri = expr_calc_value(prop->visible.expr);
122 if (prop->visible.tri != no)
123 return prop;
124 }
125 return NULL;
126}
127
128struct property *sym_get_range_prop(struct symbol *sym)
128static struct property *sym_get_range_prop(struct symbol *sym)
129{
130 struct property *prop;
131
132 for_all_properties(sym, prop, P_RANGE) {
133 prop->visible.tri = expr_calc_value(prop->visible.expr);
134 if (prop->visible.tri != no)
135 return prop;
136 }

--- 801 unchanged lines hidden (view full) ---

938 case P_RANGE:
939 return "range";
940 case P_UNKNOWN:
941 break;
942 }
943 return "unknown";
944}
945
129{
130 struct property *prop;
131
132 for_all_properties(sym, prop, P_RANGE) {
133 prop->visible.tri = expr_calc_value(prop->visible.expr);
134 if (prop->visible.tri != no)
135 return prop;
136 }

--- 801 unchanged lines hidden (view full) ---

938 case P_RANGE:
939 return "range";
940 case P_UNKNOWN:
941 break;
942 }
943 return "unknown";
944}
945
946void prop_add_env(const char *env)
946static void prop_add_env(const char *env)
947{
948 struct symbol *sym, *sym2;
949 struct property *prop;
950 char *p;
951
952 sym = current_entry->sym;
953 sym->flags |= SYMBOL_AUTO;
954 for_all_properties(sym, prop, P_ENV) {

--- 19 unchanged lines hidden ---
947{
948 struct symbol *sym, *sym2;
949 struct property *prop;
950 char *p;
951
952 sym = current_entry->sym;
953 sym->flags |= SYMBOL_AUTO;
954 for_all_properties(sym, prop, P_ENV) {

--- 19 unchanged lines hidden ---