forked from Imagelibrary/binutils-gdb
Minor reformatting in ada-lang.c:assign_aggregate
No code change.
gdb/ChangeLog:
From Andrey Smirnov <andrew.smirnov@gmail.com>:
* ada-lang.c (assign_aggregate): Minor reformatting.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
|
||||||
|
|
||||||
|
* ada-lang.c (assign_aggregate): Minor reformatting.
|
||||||
|
|
||||||
2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
|
2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
|
||||||
|
|
||||||
* ada-lang.c (assign_aggregate): Remove declaration of local
|
* ada-lang.c (assign_aggregate): Remove declaration of local
|
||||||
|
|||||||
@@ -8706,24 +8706,24 @@ assign_aggregate (struct value *container,
|
|||||||
{
|
{
|
||||||
switch (exp->elts[*pos].opcode)
|
switch (exp->elts[*pos].opcode)
|
||||||
{
|
{
|
||||||
case OP_CHOICES:
|
case OP_CHOICES:
|
||||||
aggregate_assign_from_choices (container, lhs, exp, pos, indices,
|
aggregate_assign_from_choices (container, lhs, exp, pos, indices,
|
||||||
|
&num_indices, max_indices,
|
||||||
|
low_index, high_index);
|
||||||
|
break;
|
||||||
|
case OP_POSITIONAL:
|
||||||
|
aggregate_assign_positional (container, lhs, exp, pos, indices,
|
||||||
&num_indices, max_indices,
|
&num_indices, max_indices,
|
||||||
low_index, high_index);
|
low_index, high_index);
|
||||||
break;
|
break;
|
||||||
case OP_POSITIONAL:
|
case OP_OTHERS:
|
||||||
aggregate_assign_positional (container, lhs, exp, pos, indices,
|
if (i != n-1)
|
||||||
&num_indices, max_indices,
|
error (_("Misplaced 'others' clause"));
|
||||||
low_index, high_index);
|
aggregate_assign_others (container, lhs, exp, pos, indices,
|
||||||
break;
|
num_indices, low_index, high_index);
|
||||||
case OP_OTHERS:
|
break;
|
||||||
if (i != n-1)
|
default:
|
||||||
error (_("Misplaced 'others' clause"));
|
error (_("Internal error: bad aggregate clause"));
|
||||||
aggregate_assign_others (container, lhs, exp, pos, indices,
|
|
||||||
num_indices, low_index, high_index);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
error (_("Internal error: bad aggregate clause"));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user