consistently use "header.next" rather than "next".
* mpw-eppcmac.c: Likewise.
* emultempl/beos.em: Likewise.
* emultempl/hppaelf.em: Likewise.
* emultempl/pe.em: Likewise.
* ldlang.h (union lang_statement_union): Remove "next" field.
vec = ((lang_statement_union_type **)
xmalloc (count * sizeof (lang_statement_union_type *)));
- for (p = *startptr, i = 0; i < count; i++, p = p->next)
+ for (p = *startptr, i = 0; i < count; i++, p = p->header.next)
vec[i] = p;
qsort (vec, count, sizeof (vec[0]), sort_func);
sort_sections (s)
lang_statement_union_type *s;
{
- for (; s ; s = s->next)
+ for (; s ; s = s->header.next)
switch (s->header.type)
{
case lang_output_section_statement_enum:
for (end = start, count = 0;
end && (end->header.type
== lang_input_section_enum);
- end = end->next)
+ end = end->header.next)
count++;
p = sort_sections_1 (p, end, count,
lang_statement_union_type *end;
int count;
- for (end = *p, count = 0; end; end = end->next)
+ for (end = *p, count = 0; end; end = end->header.next)
{
if (end->header.type != lang_input_section_enum)
abort ();
ps[0] = '\$';
ps[1] = 0;
- for (l = os->children.head; l; l = l->next)
+ for (l = os->children.head; l; l = l->header.next)
if (l->header.type == lang_wild_statement_enum)
{
struct wildcard_list *sec;
lang_statement_union_type *l;
boolean ret;
- for (; (l = *lp) != NULL; lp = &l->next)
+ for (; (l = *lp) != NULL; lp = &l->header.next)
{
switch (l->header.type)
{
sections. */
found_dollar = false;
- for ( ; *pl != NULL; pl = &(*pl)->next)
+ for ( ; *pl != NULL; pl = &(*pl)->header.next)
{
lang_input_section_type *ls;
const char *lname;
if (add_child.head != NULL)
{
- add_child.head->next = *pl;
+ add_child.head->header.next = *pl;
*pl = add_child.head;
}
}
void (*func) PARAMS ((lang_statement_union_type *));
lang_statement_union_type *s;
{
- for (; s != (lang_statement_union_type *) NULL; s = s->next)
+ for (; s != (lang_statement_union_type *) NULL; s = s->header.next)
{
func (s);
return NULL;
section_name = bfd_get_section_name (file->the_bfd, section);
- for (l = wild->children.head; l != NULL; l = l->next)
+ for (l = wild->children.head; l != NULL; l = l->header.next)
{
lang_input_section_type *ls;
be NULL. */
if (list.head != NULL)
{
- ASSERT (list.head->next == NULL);
+ ASSERT (list.head->header.next == NULL);
for (pp = &ptr->children.head;
*pp != before;
- pp = &(*pp)->next)
+ pp = &(*pp)->header.next)
ASSERT (*pp != NULL);
- list.head->next = *pp;
+ list.head->header.next = *pp;
*pp = list.head;
}
}
lang_statement_union_type *s;
boolean force;
{
- for (; s != (lang_statement_union_type *) NULL; s = s->next)
+ for (; s != (lang_statement_union_type *) NULL; s = s->header.next)
{
switch (s->header.type)
{
if (add.head != NULL)
{
- *add.tail = s->next;
- s->next = add.head;
+ *add.tail = s->header.next;
+ s->header.next = add.head;
}
}
break;
const char *target;
lang_output_section_statement_type *output_section_statement;
{
- for (; s != (lang_statement_union_type *) NULL; s = s->next)
+ for (; s != (lang_statement_union_type *) NULL; s = s->header.next)
{
switch (s->header.type)
{
while (s != NULL)
{
print_statement (s, os);
- s = s->next;
+ s = s->header.next;
}
}
while (s && --n >= 0)
{
print_statement (s, abs_output_section);
- s = s->next;
+ s = s->header.next;
}
}
ldfile_output_machine);
/* Size up the sections from their constituent parts. */
- for (; s != (lang_statement_union_type *) NULL; s = s->next)
+ for (; s != (lang_statement_union_type *) NULL; s = s->header.next)
{
switch (s->header.type)
{
asection *input;
if (os->children.head == NULL
- || os->children.head->next != NULL
+ || os->children.head->header.next != NULL
|| os->children.head->header.type != lang_input_section_enum)
einfo (_("%P%X: Internal error on COFF shared library section %s\n"),
os->name);
unsigned opb = bfd_arch_mach_octets_per_byte (ldfile_output_architecture,
ldfile_output_machine);
- for (; s != (lang_statement_union_type *) NULL; s = s->next)
+ for (; s != (lang_statement_union_type *) NULL; s = s->header.next)
{
switch (s->header.type)
{
lang_gc_sections_1 (s)
lang_statement_union_type *s;
{
- for (; s != (lang_statement_union_type *) NULL; s = s->next)
+ for (; s != (lang_statement_union_type *) NULL; s = s->header.next)
{
switch (s->header.type)
{
typedef union lang_statement_union {
lang_statement_header_type header;
- union lang_statement_union *next;
lang_wild_statement_type wild_statement;
lang_data_statement_type data_statement;
lang_reloc_statement_type reloc_statement;
if (os == NULL)
einfo (_("%P%F: can't find output section %s\n"),
sec->output_section->name);
- for (pls = &os->children.head; *pls != NULL; pls = &(*pls)->next)
+ for (pls = &os->children.head; *pls != NULL; pls = &(*pls)->header.next)
{
if ((*pls)->header.type == lang_input_section_enum
&& (*pls)->input_section.section == sec)
{
is = (lang_input_section_type *) *pls;
- *pls = (*pls)->next;
+ *pls = (*pls)->header.next;
break;
}
if ((*pls)->header.type == lang_wild_statement_enum)
for (pwls = &(*pls)->wild_statement.children.head;
*pwls != NULL;
- pwls = &(*pwls)->next)
+ pwls = &(*pwls)->header.next)
{
if ((*pwls)->header.type == lang_input_section_enum
&& (*pwls)->input_section.section == sec)
{
is = (lang_input_section_type *) *pwls;
- *pwls = (*pwls)->next;
+ *pwls = (*pwls)->header.next;
break;
}
}