mirror of
https://github.com/mirror/make.git
synced 2025-02-07 02:00:16 +08:00
Formerly variable.c.~23~
This commit is contained in:
parent
fc8fa16253
commit
7a031cd4b2
@ -396,6 +396,7 @@ char **
|
|||||||
target_environment (file)
|
target_environment (file)
|
||||||
struct file *file;
|
struct file *file;
|
||||||
{
|
{
|
||||||
|
struct variable_set_list *set_list;
|
||||||
register struct variable_set_list *s;
|
register struct variable_set_list *s;
|
||||||
struct variable_bucket
|
struct variable_bucket
|
||||||
{
|
{
|
||||||
@ -410,11 +411,12 @@ target_environment (file)
|
|||||||
unsigned int mklev_hash;
|
unsigned int mklev_hash;
|
||||||
|
|
||||||
if (file == 0)
|
if (file == 0)
|
||||||
s = current_variable_set_list;
|
set_list = current_variable_set_list;
|
||||||
else
|
else
|
||||||
s = file->variables;
|
set_list = file->variables;
|
||||||
|
|
||||||
/* Find the lowest number of buckets in any set in the list. */
|
/* Find the lowest number of buckets in any set in the list. */
|
||||||
|
s = set_list;
|
||||||
buckets = s->set->buckets;
|
buckets = s->set->buckets;
|
||||||
for (s = s->next; s != 0; s = s->next)
|
for (s = s->next; s != 0; s = s->next)
|
||||||
if (s->set->buckets < buckets)
|
if (s->set->buckets < buckets)
|
||||||
@ -436,7 +438,7 @@ target_environment (file)
|
|||||||
/* Run through all the variable sets in the list,
|
/* Run through all the variable sets in the list,
|
||||||
accumulating variables in TABLE. */
|
accumulating variables in TABLE. */
|
||||||
nvariables = 0;
|
nvariables = 0;
|
||||||
for (s = file->variables; s != 0; s = s->next)
|
for (s = set_list; s != 0; s = s->next)
|
||||||
{
|
{
|
||||||
register struct variable_set *set = s->set;
|
register struct variable_set *set = s->set;
|
||||||
for (i = 0; i < set->buckets; ++i)
|
for (i = 0; i < set->buckets; ++i)
|
||||||
|
Loading…
Reference in New Issue
Block a user