Lines Matching defs:set
156 /* Define variable named NAME with value VALUE in SET. VALUE is copied.
160 If RECURSIVE is nonzero a flag is set in the variable saying
166 int recursive, struct variable_set *set,
173 if (set == NULL)
174 set = &global_variable_set;
178 var_slot = (struct variable **) hash_find_slot (&set->table, &var_key);
214 hash_insert_at (&set->table, v, var_slot);
355 const struct variable_set *set = setlist->set;
358 v = (struct variable *) hash_find_item ((struct hash_table *) &set->table, &var_key);
424 and with LENGTH chars in set SET. NAME need not be null-terminated.
430 const struct variable_set *set)
437 return (struct variable *) hash_find_item ((struct hash_table *) &set->table, &var_key);
441 /* Initialize FILE's variable set list. If FILE already has a variable set
442 list, the topmost variable set is left intact, but the the rest of the
444 rule, then we will use the "root" double-colon target's variable set as the
445 parent of FILE's variable set.
459 l->set = (struct variable_set *) xmalloc (sizeof (struct variable_set));
460 hash_init (&l->set->table, PERFILE_VARIABLE_BUCKETS,
496 /* We found at least one. Set up a new variable set to accumulate
504 /* We found one, so insert it into the set. */
536 /* If we have a pattern variable match, set it up. */
546 /* Pop the top set off the current variable set list,
553 register struct variable_set *set;
555 set = (struct variable_set *) xmalloc (sizeof (struct variable_set));
556 hash_init (&set->table, SMALL_SCOPE_VARIABLE_BUCKETS,
561 setlist->set = set;
578 hash_map (&list->set->table, free_variable_name_and_value);
579 hash_free (&list->set->table, 1);
580 free ((char *) list->set);
584 /* Create a new variable set and push it on the current setlist.
599 struct variable_set *set = current_variable_set_list->set;
600 current_variable_set_list->set = global_setlist.set;
601 global_setlist.set = set;
613 struct variable_set *set;
622 set = setlist->set;
627 /* This set is the one in the global_setlist, but there is another global
628 set beyond that. We want to copy that set to global_setlist, then
631 set = global_setlist.set;
632 global_setlist.set = setlist->set;
638 hash_map (&set->table, free_variable_name_and_value);
639 hash_free (&set->table, 1);
640 free ((char *) set);
691 merge_variable_sets (to->set, from->set);
822 /* Make sure MAKEFILES gets exported if it is set. */
886 struct variable_set *set = s->set;
887 v_slot = (struct variable **) set->table.ht_vec;
888 v_end = v_slot + set->table.ht_size;
1030 The value is set IFF the variable is not defined yet. */
1051 current_variable_set_list->set);
1053 /* Don't append from the global set if a previous non-appending
1083 when it was set; and from the expanded new value. Allocate
1102 $SHELL in the environment, if set, points to the real pathname of
1188 set no_default_sh_exe to indicate sh was found and
1189 set new value for SHELL variable. */
1196 ? current_variable_set_list->set
1211 make sure we define this variable in the global set. */
1216 ? current_variable_set_list->set : NULL),
1444 /* Print all the variables in SET. PREFIX is printed before
1448 print_variable_set (struct variable_set *set, char *prefix)
1450 hash_map_arg (&set->table, print_variable, prefix);
1452 fputs (_("# variable set hash-table stats:\n"), stdout);
1454 hash_print_stats (&set->table, stdout);
1494 print_variable_set (file->variables->set, "# ");