mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-18 13:23:10 +08:00
* ada-exp.y, ada-lex.l, ada-typeprint.c: I18n markup.
* ada-tasks.c, ada-lang.c: I18n markup. Editorial: change "can not" => "cannot" throughout.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2006-01-07 Paul N. Hilfinger <hilfinger@adacore.com>
|
||||||
|
|
||||||
|
* ada-exp.y, ada-lex.l, ada-typeprint.c: I18n markup.
|
||||||
|
* ada-tasks.c, ada-lang.c: I18n markup.
|
||||||
|
Editorial: change "can not" => "cannot" throughout.
|
||||||
|
|
||||||
2006-01-07 Mark Kettenis <kettenis@gnu.org>
|
2006-01-07 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
* Makefile.in: Sort dependencies.
|
* Makefile.in: Sort dependencies.
|
||||||
|
@ -252,7 +252,7 @@ primary : primary '(' arglist ')'
|
|||||||
if ($1 != NULL)
|
if ($1 != NULL)
|
||||||
{
|
{
|
||||||
if ($3 != 1)
|
if ($3 != 1)
|
||||||
error ("Invalid conversion");
|
error (_("Invalid conversion"));
|
||||||
write_exp_elt_opcode (UNOP_CAST);
|
write_exp_elt_opcode (UNOP_CAST);
|
||||||
write_exp_elt_type ($1);
|
write_exp_elt_type ($1);
|
||||||
write_exp_elt_opcode (UNOP_CAST);
|
write_exp_elt_opcode (UNOP_CAST);
|
||||||
@ -270,7 +270,7 @@ primary : var_or_type '\'' save_qualifier { type_qualifier = $1; }
|
|||||||
'(' exp ')'
|
'(' exp ')'
|
||||||
{
|
{
|
||||||
if ($1 == NULL)
|
if ($1 == NULL)
|
||||||
error ("Type required for qualification");
|
error (_("Type required for qualification"));
|
||||||
write_exp_elt_opcode (UNOP_QUAL);
|
write_exp_elt_opcode (UNOP_QUAL);
|
||||||
write_exp_elt_type ($1);
|
write_exp_elt_type ($1);
|
||||||
write_exp_elt_opcode (UNOP_QUAL);
|
write_exp_elt_opcode (UNOP_QUAL);
|
||||||
@ -288,7 +288,7 @@ primary :
|
|||||||
{ if ($1 == NULL)
|
{ if ($1 == NULL)
|
||||||
write_exp_elt_opcode (TERNOP_SLICE);
|
write_exp_elt_opcode (TERNOP_SLICE);
|
||||||
else
|
else
|
||||||
error ("Cannot slice a type");
|
error (_("Cannot slice a type"));
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
@ -356,7 +356,7 @@ simple_exp : '{' var_or_type '}' simple_exp %prec '.'
|
|||||||
/* GDB extension */
|
/* GDB extension */
|
||||||
{
|
{
|
||||||
if ($2 == NULL)
|
if ($2 == NULL)
|
||||||
error ("Type required within braces in coercion");
|
error (_("Type required within braces in coercion"));
|
||||||
write_exp_elt_opcode (UNOP_MEMVAL);
|
write_exp_elt_opcode (UNOP_MEMVAL);
|
||||||
write_exp_elt_type ($2);
|
write_exp_elt_type ($2);
|
||||||
write_exp_elt_opcode (UNOP_MEMVAL);
|
write_exp_elt_opcode (UNOP_MEMVAL);
|
||||||
@ -426,7 +426,7 @@ relation : simple_exp IN simple_exp DOTDOT simple_exp
|
|||||||
| simple_exp IN var_or_type %prec TICK_ACCESS
|
| simple_exp IN var_or_type %prec TICK_ACCESS
|
||||||
{
|
{
|
||||||
if ($3 == NULL)
|
if ($3 == NULL)
|
||||||
error ("Right operand of 'in' must be type");
|
error (_("Right operand of 'in' must be type"));
|
||||||
write_exp_elt_opcode (UNOP_IN_RANGE);
|
write_exp_elt_opcode (UNOP_IN_RANGE);
|
||||||
write_exp_elt_type ($3);
|
write_exp_elt_type ($3);
|
||||||
write_exp_elt_opcode (UNOP_IN_RANGE);
|
write_exp_elt_opcode (UNOP_IN_RANGE);
|
||||||
@ -444,7 +444,7 @@ relation : simple_exp IN simple_exp DOTDOT simple_exp
|
|||||||
| simple_exp NOT IN var_or_type %prec TICK_ACCESS
|
| simple_exp NOT IN var_or_type %prec TICK_ACCESS
|
||||||
{
|
{
|
||||||
if ($4 == NULL)
|
if ($4 == NULL)
|
||||||
error ("Right operand of 'in' must be type");
|
error (_("Right operand of 'in' must be type"));
|
||||||
write_exp_elt_opcode (UNOP_IN_RANGE);
|
write_exp_elt_opcode (UNOP_IN_RANGE);
|
||||||
write_exp_elt_type ($4);
|
write_exp_elt_type ($4);
|
||||||
write_exp_elt_opcode (UNOP_IN_RANGE);
|
write_exp_elt_opcode (UNOP_IN_RANGE);
|
||||||
@ -557,7 +557,7 @@ type_prefix :
|
|||||||
var_or_type
|
var_or_type
|
||||||
{
|
{
|
||||||
if ($1 == NULL)
|
if ($1 == NULL)
|
||||||
error ("Prefix must be type");
|
error (_("Prefix must be type"));
|
||||||
write_exp_elt_opcode (OP_TYPE);
|
write_exp_elt_opcode (OP_TYPE);
|
||||||
write_exp_elt_type ($1);
|
write_exp_elt_type ($1);
|
||||||
write_exp_elt_opcode (OP_TYPE); }
|
write_exp_elt_opcode (OP_TYPE); }
|
||||||
@ -602,7 +602,7 @@ primary : STRING
|
|||||||
;
|
;
|
||||||
|
|
||||||
primary : NEW NAME
|
primary : NEW NAME
|
||||||
{ error ("NEW not implemented."); }
|
{ error (_("NEW not implemented.")); }
|
||||||
;
|
;
|
||||||
|
|
||||||
var_or_type: NAME %prec VAR
|
var_or_type: NAME %prec VAR
|
||||||
@ -768,7 +768,7 @@ ada_parse (void)
|
|||||||
void
|
void
|
||||||
yyerror (char *msg)
|
yyerror (char *msg)
|
||||||
{
|
{
|
||||||
error ("A %s in expression, near `%s'.", (msg ? msg : "error"), lexptr);
|
error (_("A %s in expression, near `%s'."), (msg ? msg : _("error")), lexptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The operator name corresponding to operator symbol STRING (adds
|
/* The operator name corresponding to operator symbol STRING (adds
|
||||||
@ -796,7 +796,7 @@ string_to_operator (struct stoken string)
|
|||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
error ("Invalid operator symbol `%s'", string.ptr);
|
error (_("Invalid operator symbol `%s'"), string.ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Emit expression to access an instance of SYM, in block BLOCK (if
|
/* Emit expression to access an instance of SYM, in block BLOCK (if
|
||||||
@ -856,7 +856,7 @@ write_object_renaming (struct block *orig_left_context,
|
|||||||
enum { SIMPLE_INDEX, LOWER_BOUND, UPPER_BOUND } slice_state;
|
enum { SIMPLE_INDEX, LOWER_BOUND, UPPER_BOUND } slice_state;
|
||||||
|
|
||||||
if (max_depth <= 0)
|
if (max_depth <= 0)
|
||||||
error ("Could not find renamed symbol");
|
error (_("Could not find renamed symbol"));
|
||||||
|
|
||||||
/* if orig_left_context is null, then use the currently selected
|
/* if orig_left_context is null, then use the currently selected
|
||||||
block; otherwise we might fail our symbol lookup below. */
|
block; otherwise we might fail our symbol lookup below. */
|
||||||
@ -887,7 +887,7 @@ write_object_renaming (struct block *orig_left_context,
|
|||||||
name[suffix-expr] = '\000';
|
name[suffix-expr] = '\000';
|
||||||
sym = lookup_symbol (name, orig_left_context, VAR_DOMAIN, 0, NULL);
|
sym = lookup_symbol (name, orig_left_context, VAR_DOMAIN, 0, NULL);
|
||||||
if (sym == NULL)
|
if (sym == NULL)
|
||||||
error ("Could not find renamed variable: %s", ada_decode (name));
|
error (_("Could not find renamed variable: %s"), ada_decode (name));
|
||||||
if (ada_is_object_renaming (sym))
|
if (ada_is_object_renaming (sym))
|
||||||
write_object_renaming (orig_left_context, sym, max_depth-1);
|
write_object_renaming (orig_left_context, sym, max_depth-1);
|
||||||
else
|
else
|
||||||
@ -943,7 +943,7 @@ write_object_renaming (struct block *orig_left_context,
|
|||||||
index_sym =
|
index_sym =
|
||||||
lookup_symbol (index_name, NULL, VAR_DOMAIN, 0, NULL);
|
lookup_symbol (index_name, NULL, VAR_DOMAIN, 0, NULL);
|
||||||
if (index_sym == NULL)
|
if (index_sym == NULL)
|
||||||
error ("Could not find %s", index_name);
|
error (_("Could not find %s"), index_name);
|
||||||
write_var_from_sym (NULL, block_found, sym);
|
write_var_from_sym (NULL, block_found, sym);
|
||||||
}
|
}
|
||||||
if (slice_state == SIMPLE_INDEX)
|
if (slice_state == SIMPLE_INDEX)
|
||||||
@ -989,7 +989,7 @@ write_object_renaming (struct block *orig_left_context,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
BadEncoding:
|
BadEncoding:
|
||||||
error ("Internal error in encoding of renaming declaration: %s",
|
error (_("Internal error in encoding of renaming declaration: %s"),
|
||||||
SYMBOL_LINKAGE_NAME (renaming));
|
SYMBOL_LINKAGE_NAME (renaming));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1021,14 +1021,14 @@ block_lookup (struct block *context, char *raw_name)
|
|||||||
else if (nsyms == 0 || SYMBOL_CLASS (syms[0].sym) != LOC_BLOCK)
|
else if (nsyms == 0 || SYMBOL_CLASS (syms[0].sym) != LOC_BLOCK)
|
||||||
{
|
{
|
||||||
if (context == NULL)
|
if (context == NULL)
|
||||||
error ("No file or function \"%s\".", raw_name);
|
error (_("No file or function \"%s\"."), raw_name);
|
||||||
else
|
else
|
||||||
error ("No function \"%s\" in specified context.", raw_name);
|
error (_("No function \"%s\" in specified context."), raw_name);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (nsyms > 1)
|
if (nsyms > 1)
|
||||||
warning ("Function name \"%s\" ambiguous here", raw_name);
|
warning (_("Function name \"%s\" ambiguous here"), raw_name);
|
||||||
return SYMBOL_BLOCK_VALUE (syms[0].sym);
|
return SYMBOL_BLOCK_VALUE (syms[0].sym);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1210,7 +1210,7 @@ write_var_or_type (struct block *block, struct stoken name0)
|
|||||||
struct type *type = SYMBOL_TYPE (type_sym);
|
struct type *type = SYMBOL_TYPE (type_sym);
|
||||||
|
|
||||||
if (TYPE_CODE (type) == TYPE_CODE_VOID)
|
if (TYPE_CODE (type) == TYPE_CODE_VOID)
|
||||||
error ("`%s' matches only void type name(s)", name0.ptr);
|
error (_("`%s' matches only void type name(s)"), name0.ptr);
|
||||||
else if (ada_is_object_renaming (type_sym))
|
else if (ada_is_object_renaming (type_sym))
|
||||||
{
|
{
|
||||||
write_object_renaming (block, type_sym,
|
write_object_renaming (block, type_sym,
|
||||||
@ -1238,7 +1238,7 @@ write_var_or_type (struct block *block, struct stoken name0)
|
|||||||
else if (tail_index == name_len)
|
else if (tail_index == name_len)
|
||||||
return type;
|
return type;
|
||||||
else
|
else
|
||||||
error ("Invalid attempt to select from type: \"%s\".", name0.ptr);
|
error (_("Invalid attempt to select from type: \"%s\"."), name0.ptr);
|
||||||
}
|
}
|
||||||
else if (tail_index == name_len && nsyms == 0)
|
else if (tail_index == name_len && nsyms == 0)
|
||||||
{
|
{
|
||||||
@ -1271,7 +1271,7 @@ write_var_or_type (struct block *block, struct stoken name0)
|
|||||||
if (tail_index == name_len
|
if (tail_index == name_len
|
||||||
&& strncmp (encoded_name, "standard__",
|
&& strncmp (encoded_name, "standard__",
|
||||||
sizeof ("standard__") - 1) == 0)
|
sizeof ("standard__") - 1) == 0)
|
||||||
error ("No definition of \"%s\" found.", name0.ptr);
|
error (_("No definition of \"%s\" found."), name0.ptr);
|
||||||
|
|
||||||
tail_index = chop_selector (encoded_name, tail_index);
|
tail_index = chop_selector (encoded_name, tail_index);
|
||||||
}
|
}
|
||||||
@ -1284,16 +1284,16 @@ write_var_or_type (struct block *block, struct stoken name0)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!have_full_symbols () && !have_partial_symbols () && block == NULL)
|
if (!have_full_symbols () && !have_partial_symbols () && block == NULL)
|
||||||
error ("No symbol table is loaded. Use the \"file\" command.");
|
error (_("No symbol table is loaded. Use the \"file\" command."));
|
||||||
if (block == expression_context_block)
|
if (block == expression_context_block)
|
||||||
error ("No definition of \"%s\" in current context.", name0.ptr);
|
error (_("No definition of \"%s\" in current context."), name0.ptr);
|
||||||
else
|
else
|
||||||
error ("No definition of \"%s\" in specified context.", name0.ptr);
|
error (_("No definition of \"%s\" in specified context."), name0.ptr);
|
||||||
|
|
||||||
TryAfterRenaming: ;
|
TryAfterRenaming: ;
|
||||||
}
|
}
|
||||||
|
|
||||||
error ("Could not find renamed symbol \"%s\"", name0.ptr);
|
error (_("Could not find renamed symbol \"%s\""), name0.ptr);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1327,7 +1327,7 @@ write_name_assoc (struct stoken name)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (write_var_or_type (NULL, name) != NULL)
|
if (write_var_or_type (NULL, name) != NULL)
|
||||||
error ("Invalid use of type.");
|
error (_("Invalid use of type."));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Convert the character literal whose ASCII value would be VAL to the
|
/* Convert the character literal whose ASCII value would be VAL to the
|
||||||
|
@ -4352,7 +4352,7 @@ is_package_name (const char *name)
|
|||||||
"_ada_" followed by NAME can be found. */
|
"_ada_" followed by NAME can be found. */
|
||||||
|
|
||||||
/* Do a quick check that NAME does not contain "__", since library-level
|
/* Do a quick check that NAME does not contain "__", since library-level
|
||||||
functions names can not contain "__" in them. */
|
functions names cannot contain "__" in them. */
|
||||||
if (strstr (name, "__") != NULL)
|
if (strstr (name, "__") != NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
@ -6827,7 +6827,7 @@ to_fixed_array_type (struct type *type0, struct value *dval,
|
|||||||
debugging data. */
|
debugging data. */
|
||||||
/* Create a fixed version of the array element type.
|
/* Create a fixed version of the array element type.
|
||||||
We're not providing the address of an element here,
|
We're not providing the address of an element here,
|
||||||
and thus the actual object value can not be inspected to do
|
and thus the actual object value cannot be inspected to do
|
||||||
the conversion. This should not be a problem, since arrays of
|
the conversion. This should not be a problem, since arrays of
|
||||||
unconstrained objects are not allowed. In particular, all
|
unconstrained objects are not allowed. In particular, all
|
||||||
the elements of an array of a tagged type should all be of
|
the elements of an array of a tagged type should all be of
|
||||||
@ -6855,7 +6855,7 @@ to_fixed_array_type (struct type *type0, struct value *dval,
|
|||||||
debugging data. */
|
debugging data. */
|
||||||
/* Create a fixed version of the array element type.
|
/* Create a fixed version of the array element type.
|
||||||
We're not providing the address of an element here,
|
We're not providing the address of an element here,
|
||||||
and thus the actual object value can not be inspected to do
|
and thus the actual object value cannot be inspected to do
|
||||||
the conversion. This should not be a problem, since arrays of
|
the conversion. This should not be a problem, since arrays of
|
||||||
unconstrained objects are not allowed. In particular, all
|
unconstrained objects are not allowed. In particular, all
|
||||||
the elements of an array of a tagged type should all be of
|
the elements of an array of a tagged type should all be of
|
||||||
@ -7692,7 +7692,7 @@ aggregate_assign_positional (struct value *container,
|
|||||||
LONGEST ind = longest_to_int (exp->elts[*pos + 1].longconst) + low;
|
LONGEST ind = longest_to_int (exp->elts[*pos + 1].longconst) + low;
|
||||||
|
|
||||||
if (ind - 1 == high)
|
if (ind - 1 == high)
|
||||||
warning ("Extra components in aggregate ignored.");
|
warning (_("Extra components in aggregate ignored."));
|
||||||
if (ind <= high)
|
if (ind <= high)
|
||||||
{
|
{
|
||||||
add_component_interval (ind, ind, indices, num_indices, max_indices);
|
add_component_interval (ind, ind, indices, num_indices, max_indices);
|
||||||
@ -8145,8 +8145,8 @@ ada_evaluate_subexp (struct type *expect_type, struct expression *exp,
|
|||||||
nargs, argvec + 1));
|
nargs, argvec + 1));
|
||||||
|
|
||||||
default:
|
default:
|
||||||
error (_("Attempt to index or call something other than an \
|
error (_("Attempt to index or call something other than an "
|
||||||
array or function"));
|
"array or function"));
|
||||||
}
|
}
|
||||||
|
|
||||||
case TERNOP_SLICE:
|
case TERNOP_SLICE:
|
||||||
@ -8239,8 +8239,8 @@ array or function"));
|
|||||||
switch (TYPE_CODE (type))
|
switch (TYPE_CODE (type))
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
lim_warning (_("Membership test incompletely implemented; \
|
lim_warning (_("Membership test incompletely implemented; "
|
||||||
always returns true"));
|
"always returns true"));
|
||||||
return value_from_longest (builtin_type_int, (LONGEST) 1);
|
return value_from_longest (builtin_type_int, (LONGEST) 1);
|
||||||
|
|
||||||
case TYPE_CODE_RANGE:
|
case TYPE_CODE_RANGE:
|
||||||
@ -8585,7 +8585,7 @@ always returns true"));
|
|||||||
return
|
return
|
||||||
ada_to_fixed_value (unwrap_value
|
ada_to_fixed_value (unwrap_value
|
||||||
(ada_value_struct_elt
|
(ada_value_struct_elt
|
||||||
(arg1, &exp->elts[pc + 2].string, "record")));
|
(arg1, &exp->elts[pc + 2].string, _("record"))));
|
||||||
case OP_TYPE:
|
case OP_TYPE:
|
||||||
/* The value is not supposed to be used. This is here to make it
|
/* The value is not supposed to be used. This is here to make it
|
||||||
easier to accommodate expressions that contain types. */
|
easier to accommodate expressions that contain types. */
|
||||||
@ -8612,7 +8612,7 @@ always returns true"));
|
|||||||
case OP_AGGREGATE:
|
case OP_AGGREGATE:
|
||||||
error (_("Aggregates only allowed on the right of an assignment"));
|
error (_("Aggregates only allowed on the right of an assignment"));
|
||||||
default:
|
default:
|
||||||
internal_error (__FILE__, __LINE__, "aggregate apparently mangled");
|
internal_error (__FILE__, __LINE__, _("aggregate apparently mangled"));
|
||||||
}
|
}
|
||||||
|
|
||||||
ada_forward_operator_length (exp, pc, &oplen, &nargs);
|
ada_forward_operator_length (exp, pc, &oplen, &nargs);
|
||||||
|
@ -124,11 +124,11 @@ static int find_dot_all (const char *);
|
|||||||
}
|
}
|
||||||
|
|
||||||
{NUM10}"#"{NUM16}"."{NUM16}"#"{EXP} {
|
{NUM10}"#"{NUM16}"."{NUM16}"#"{EXP} {
|
||||||
error ("Based real literals not implemented yet.");
|
error (_("Based real literals not implemented yet."));
|
||||||
}
|
}
|
||||||
|
|
||||||
{NUM10}"#"{NUM16}"."{NUM16}"#" {
|
{NUM10}"#"{NUM16}"."{NUM16}"#" {
|
||||||
error ("Based real literals not implemented yet.");
|
error (_("Based real literals not implemented yet."));
|
||||||
}
|
}
|
||||||
|
|
||||||
<INITIAL>"'"({GRAPHIC}|\")"'" {
|
<INITIAL>"'"({GRAPHIC}|\")"'" {
|
||||||
@ -151,7 +151,7 @@ static int find_dot_all (const char *);
|
|||||||
}
|
}
|
||||||
|
|
||||||
\" {
|
\" {
|
||||||
error ("ill-formed or non-terminated string literal");
|
error (_("ill-formed or non-terminated string literal"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -264,7 +264,7 @@ xor { return XOR; }
|
|||||||
|
|
||||||
/* CATCH-ALL ERROR CASE */
|
/* CATCH-ALL ERROR CASE */
|
||||||
|
|
||||||
. { error ("Invalid character '%s' in expression.", yytext); }
|
. { error (_("Invalid character '%s' in expression."), yytext); }
|
||||||
%%
|
%%
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
@ -380,7 +380,7 @@ processInt (const char *base0, const char *num0, const char *exp0)
|
|||||||
{
|
{
|
||||||
base = strtol (base0, (char **) NULL, 10);
|
base = strtol (base0, (char **) NULL, 10);
|
||||||
if (base < 2 || base > 16)
|
if (base < 2 || base > 16)
|
||||||
error ("Invalid base: %d.", base);
|
error (_("Invalid base: %d."), base);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (exp0 == NULL)
|
if (exp0 == NULL)
|
||||||
@ -391,14 +391,14 @@ processInt (const char *base0, const char *num0, const char *exp0)
|
|||||||
errno = 0;
|
errno = 0;
|
||||||
result = strtoulst (num0, (const char **) &trailer, base);
|
result = strtoulst (num0, (const char **) &trailer, base);
|
||||||
if (errno == ERANGE)
|
if (errno == ERANGE)
|
||||||
error ("Integer literal out of range");
|
error (_("Integer literal out of range"));
|
||||||
if (isxdigit(*trailer))
|
if (isxdigit(*trailer))
|
||||||
error ("Invalid digit `%c' in based literal", *trailer);
|
error (_("Invalid digit `%c' in based literal"), *trailer);
|
||||||
|
|
||||||
while (exp > 0)
|
while (exp > 0)
|
||||||
{
|
{
|
||||||
if (result > (ULONG_MAX / base))
|
if (result > (ULONG_MAX / base))
|
||||||
error ("Integer literal out of range");
|
error (_("Integer literal out of range"));
|
||||||
result *= base;
|
result *= base;
|
||||||
exp -= 1;
|
exp -= 1;
|
||||||
}
|
}
|
||||||
@ -652,10 +652,10 @@ processAttribute (const char *str)
|
|||||||
if (k == -1)
|
if (k == -1)
|
||||||
k = i;
|
k = i;
|
||||||
else
|
else
|
||||||
error ("ambiguous attribute name: `%s'", str);
|
error (_("ambiguous attribute name: `%s'"), str);
|
||||||
}
|
}
|
||||||
if (k == -1)
|
if (k == -1)
|
||||||
error ("unrecognized attribute: `%s'", str);
|
error (_("unrecognized attribute: `%s'"), str);
|
||||||
|
|
||||||
return attributes[k].code;
|
return attributes[k].code;
|
||||||
}
|
}
|
||||||
|
@ -380,7 +380,7 @@ print_array_type (struct type *type, struct ui_file *stream, int show,
|
|||||||
type = ada_coerce_to_simple_array_type (type);
|
type = ada_coerce_to_simple_array_type (type);
|
||||||
if (type == NULL)
|
if (type == NULL)
|
||||||
{
|
{
|
||||||
fprintf_filtered (stream, "<undecipherable array type>");
|
fprintf_filtered (stream, _("<undecipherable array type>"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (ada_is_simple_array_type (type))
|
if (ada_is_simple_array_type (type))
|
||||||
@ -813,7 +813,7 @@ ada_print_type (struct type *type0, char *varstring, struct ui_file *stream,
|
|||||||
{
|
{
|
||||||
char *name = ada_type_name (type);
|
char *name = ada_type_name (type);
|
||||||
if (!ada_is_range_type_name (name))
|
if (!ada_is_range_type_name (name))
|
||||||
fprintf_filtered (stream, "<%d-byte integer>",
|
fprintf_filtered (stream, _("<%d-byte integer>"),
|
||||||
TYPE_LENGTH (type));
|
TYPE_LENGTH (type));
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -837,7 +837,7 @@ ada_print_type (struct type *type0, char *varstring, struct ui_file *stream,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case TYPE_CODE_FLT:
|
case TYPE_CODE_FLT:
|
||||||
fprintf_filtered (stream, "<%d-byte float>", TYPE_LENGTH (type));
|
fprintf_filtered (stream, _("<%d-byte float>"), TYPE_LENGTH (type));
|
||||||
break;
|
break;
|
||||||
case TYPE_CODE_ENUM:
|
case TYPE_CODE_ENUM:
|
||||||
if (show < 0)
|
if (show < 0)
|
||||||
@ -850,7 +850,7 @@ ada_print_type (struct type *type0, char *varstring, struct ui_file *stream,
|
|||||||
print_array_type (type, stream, show, level);
|
print_array_type (type, stream, show, level);
|
||||||
else if (ada_is_bogus_array_descriptor (type))
|
else if (ada_is_bogus_array_descriptor (type))
|
||||||
fprintf_filtered (stream,
|
fprintf_filtered (stream,
|
||||||
"array (?) of ? (<mal-formed descriptor>)");
|
_("array (?) of ? (<mal-formed descriptor>)"));
|
||||||
else
|
else
|
||||||
print_record_type (type, stream, show, level);
|
print_record_type (type, stream, show, level);
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user